Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support Python 3.3 (do not use ensure_future, fall back to bundled as…
…yncio)
- Loading branch information
Showing
102 changed files
with
34,251 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
_temp_* | ||
*.swp | ||
*.tmp | ||
*.pyc | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"asyncio" is a clone of https://github.com/python/asyncio as of revision | ||
07ac834068037d8206d6c941e029474bda8e08f2 (03 Nov 2016) with the following | ||
patch: | ||
|
||
--- asyncio/base_events.py 2016-11-07 16:45:34.587238061 -0600 | ||
+++ asyncio/base_events.py 2016-11-07 14:50:34.169035083 -0600 | ||
@@ -40,6 +40,11 @@ | ||
|
||
__all__ = ['BaseEventLoop'] | ||
|
||
+# lhl: We need to add this back in because 3.3 doesn't have a default max_workers in ThreadPoolExecuter | ||
+# https://bugs.python.org/issue26796 | ||
+# https://docs.python.org/3/library/asyncio-eventloop.html#executor | ||
+# https://docs.python.org/3/library/concurrent.futures.html | ||
+_MAX_WORKERS=8 | ||
|
||
# Minimum number of _scheduled timer handles before cleanup of | ||
# cancelled handles is performed. | ||
@@ -619,7 +624,10 @@ | ||
if executor is None: | ||
executor = self._default_executor | ||
if executor is None: | ||
- executor = concurrent.futures.ThreadPoolExecutor() | ||
+ try: | ||
+ executor = concurrent.futures.ThreadPoolExecutor() | ||
+ except: | ||
+ executor = concurrent.futures.ThreadPoolExecutor(_MAX_WORKERS) | ||
self._default_executor = executor | ||
return futures.wrap_future(executor.submit(func, *args), loop=self) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text=auto | ||
*.py text diff=python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
*\.py[co] | ||
*~ | ||
*\.orig | ||
*\#.* | ||
*@.* | ||
.coverage | ||
htmlcov | ||
.DS_Store | ||
venv | ||
pyvenv | ||
distribute_setup.py | ||
distribute-*.tar.gz | ||
build | ||
dist | ||
*.egg-info | ||
.tox | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: python | ||
|
||
os: | ||
- linux | ||
|
||
python: | ||
- 3.5 | ||
|
||
install: | ||
- pip install asyncio | ||
- python setup.py install | ||
|
||
script: | ||
- python runtests.py | ||
- PYTHONASYNCIODEBUG=1 python -bb runtests.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
A. Jesse Jiryu Davis <jesse AT mongodb.com> | ||
Aaron Griffith | ||
Andrew Svetlov <andrew.svetlov AT gmail.com> | ||
Anthony Baire | ||
Antoine Pitrou <solipsis AT pitrou.net> | ||
Arnaud Faure | ||
Aymeric Augustin | ||
Brett Cannon | ||
Charles-François Natali <cf.natali AT gmail.com> | ||
Christian Heimes | ||
Donald Stufft | ||
Eli Bendersky <eliben AT gmail.com> | ||
Geert Jansen <geertj AT gmail.com> | ||
Giampaolo Rodola' <g.rodola AT gmail.com> | ||
Guido van Rossum <guido AT python.org>: creator of the asyncio project and author of the PEP 3156 | ||
Gustavo Carneiro <gjcarneiro AT gmail.com> | ||
Jeff Quast | ||
Jonathan Slenders <jonathan.slenders AT gmail.com> | ||
Nikolay Kim <fafhrd91 AT gmail.com> | ||
Richard Oudkerk <shibturn AT gmail.com> | ||
Saúl Ibarra Corretgé <saghul AT gmail.com> | ||
Serhiy Storchaka | ||
Vajrasky Kok | ||
Victor Stinner <victor.stinner AT gmail.com> | ||
Vladimir Kryachko | ||
Yann Sionneau | ||
Yury Selivanov <yselivanov AT gmail.com> |
Oops, something went wrong.