##// END OF EJS Templates
Merge pull request #6831 from Carreau/fix-yield...
Min RK -
r18562:241ef9c1 merge
parent child Browse files
Show More
@@ -220,7 +220,9 b' class AuthenticatedZMQStreamHandler(ZMQStreamHandler, IPythonHandler):'
220 220 @gen.coroutine
221 221 def get(self, *args, **kwargs):
222 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 226 # FIXME: only do super get on tornado ≥ 4
225 227 # tornado 3 has no get, will raise 405
226 228 if tornado.version_info >= (4,):
General Comments 0
You need to be logged in to leave comments. Login now