Show More
@@ -220,7 +220,9 b' class AuthenticatedZMQStreamHandler(ZMQStreamHandler, IPythonHandler):' | |||||
220 | @gen.coroutine |
|
220 | @gen.coroutine | |
221 | def get(self, *args, **kwargs): |
|
221 | def get(self, *args, **kwargs): | |
222 | # pre_get can be a coroutine in subclasses |
|
222 | # pre_get can be a coroutine in subclasses | |
223 | yield gen.maybe_future(self.pre_get()) |
|
223 | # assign and yield in two step to avoid tornado 3 issues | |
|
224 | res = self.pre_get() | |||
|
225 | yield gen.maybe_future(res) | |||
224 | # FIXME: only do super get on tornado ≥ 4 |
|
226 | # FIXME: only do super get on tornado ≥ 4 | |
225 | # tornado 3 has no get, will raise 405 |
|
227 | # tornado 3 has no get, will raise 405 | |
226 | if tornado.version_info >= (4,): |
|
228 | if tornado.version_info >= (4,): |
General Comments 0
You need to be logged in to leave comments.
Login now