Skip to content

Commit 349b5ae

Browse files
kevin-bateslresende
authored andcommitted
Update handler compatibility with tornado/pyzmq updates (#322)
1 parent c1fdd3c commit 349b5ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel_gateway/jupyter_websocket/handlers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Distributed under the terms of the Modified BSD License.
33
"""Tornado handlers for kernel specs."""
44

5+
from notebook.utils import maybe_future
56
from tornado import gen, web
67
from ..mixins import TokenAuthorizationMixin, CORSMixin, JSONErrorsMixin
78
import os
@@ -29,7 +30,7 @@ def get(self):
2930
resource_name, content_type = self.get_resource_metadata()
3031
self.set_header('Content-Type', content_type)
3132
res = web.StaticFileHandler.get(self, resource_name)
32-
yield gen.maybe_future(res)
33+
yield maybe_future(res)
3334

3435
def options(self, **kwargs):
3536
"""Method for properly handling CORS pre-flight"""

0 commit comments

Comments
 (0)