Browse Source

Fix import in Tornado py2.

pull/1289/head
Prinz23 5 years ago
committed by JackDandy
parent
commit
a8d9cc50b2
  1. 1
      CHANGES.md
  2. 2
      lib/tornado_py2/concurrent.py

1
CHANGES.md

@ -55,6 +55,7 @@
* Update soupsieve_py2 1.9.5 (6a38398) to 1.9.5 final (e00a882) * Update soupsieve_py2 1.9.5 (6a38398) to 1.9.5 final (e00a882)
* Update Tornado_py3 Web Server 6.0.3 (ff985fe) to 6.1.dev1 (18b653c) * Update Tornado_py3 Web Server 6.0.3 (ff985fe) to 6.1.dev1 (18b653c)
* Update urllib3 release 1.25.6 (4a6c288) to 1.25.7 (37ba61a) * Update urllib3 release 1.25.6 (4a6c288) to 1.25.7 (37ba61a)
* Fix import in Tornado py2
### 0.21.30 (2020-04-30 10:20:00 UTC) ### 0.21.30 (2020-04-30 10:20:00 UTC)

2
lib/tornado_py2/concurrent.py

@ -371,7 +371,7 @@ if asyncio is not None:
Future = asyncio.Future # noqa Future = asyncio.Future # noqa
if futures is None: if futures is None:
FUTURES = Future # type: typing.Union[type, typing.Tuple[type, ...]] FUTURES = (Future, ) # type: typing.Union[type, typing.Tuple[type, ...]]
else: else:
FUTURES = (futures.Future, Future) FUTURES = (futures.Future, Future)

Loading…
Cancel
Save