Gateway: Make the CORS apply() static

Quietens a PyCharm warning
This commit is contained in:
Athanasius committed 2022-08-18 15:17:58 +01:00
1 parent 99679d9d5b
commit 3b3e1a91c5
1 file changed
+2 -1
+2 -1
View File
@@ -351,7 +351,8 @@ class EnableCors(object):
name = 'enable_cors'
api = 2
def apply(self, fn, context):
@staticmethod
def apply(fn, context):
"""
Apply CORS headers to the calling bottle app.