We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1fdd3c commit 349b5aeCopy full SHA for 349b5ae
kernel_gateway/jupyter_websocket/handlers.py
@@ -2,6 +2,7 @@
2
# Distributed under the terms of the Modified BSD License.
3
"""Tornado handlers for kernel specs."""
4
5
+from notebook.utils import maybe_future
6
from tornado import gen, web
7
from ..mixins import TokenAuthorizationMixin, CORSMixin, JSONErrorsMixin
8
import os
@@ -29,7 +30,7 @@ def get(self):
29
30
resource_name, content_type = self.get_resource_metadata()
31
self.set_header('Content-Type', content_type)
32
res = web.StaticFileHandler.get(self, resource_name)
- yield gen.maybe_future(res)
33
+ yield maybe_future(res)
34
35
def options(self, **kwargs):
36
"""Method for properly handling CORS pre-flight"""
0 commit comments