We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Function is too complex (C901)
_webio_handler()
1 parent c7de41c commit 753c89fCopy full SHA for 753c89f
pywebio/platform/tornado.py
@@ -66,7 +66,7 @@ def _is_same_site(origin, handler: WebSocketHandler):
66
return origin == host
67
68
69
-def _webio_handler(applications=None, cdn=True, reconnect_timeout=0, check_origin_func=_is_same_site):
+def _webio_handler(applications=None, cdn=True, reconnect_timeout=0, check_origin_func=_is_same_site): # noqa: C901
70
"""
71
:param dict applications: dict of `name -> task function`
72
:param bool/str cdn: Whether to load front-end static resources from CDN
0 commit comments