mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 16:03:00 +00:00
require tornado 5.1, async_generator 1.9
- maybe_future relies on changes in 5.1, not in 5.0 - async_generator.asynccontextmanager is new in 1.9
This commit is contained in:
@@ -503,7 +503,7 @@ def maybe_future(obj):
|
||||
return asyncio.wrap_future(obj)
|
||||
else:
|
||||
# could also check for tornado.concurrent.Future
|
||||
# but with tornado >= 5 tornado.Future is asyncio.Future
|
||||
# but with tornado >= 5.1 tornado.Future is asyncio.Future
|
||||
f = asyncio.Future()
|
||||
f.set_result(obj)
|
||||
return f
|
||||
|
Reference in New Issue
Block a user