8000 Update Lib/asyncio from CPython v3.10.5 · RustPython/RustPython@ab8219b · GitHub
[go: up one dir, main page]

Skip to content

Commit ab8219b

Browse files
committed
Update Lib/asyncio from CPython v3.10.5
1 parent 0c58d7b commit ab8219b

25 files changed

+4061
-3075
lines changed

Lib/asyncio/__init__.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
"""The asyncio package, tracking PEP 3156."""
22

33
# flake8: noqa
4-
import sys
5-
6-
import selectors
7-
# XXX RustPython TODO: _overlapped
8-
if sys.platform == 'win32' and False:
9-
# Similar thing for _overlapped.
10-
try:
11-
from . import _overlapped
12-
except ImportError:
13-
import _overlapped # Will also be exported.
144

5+
import sys
156

167
# This relies on each of the submodules having an __all__ variable.
178
from .base_events import *
189
from .coroutines import *
1910
from .events import *
11+
from .exceptions import *
2012
from .futures import *
2113
from .locks import *
2214
from .protocols import *
@@ -25,11 +17,13 @@
2517
from .streams import *
2618
from .subprocess import *
2719
from .tasks import *
20+
from .threads import *
2821
from .transports import *
2922

3023
__all__ = (base_events.__all__ +
3124
coroutines.__all__ +
3225
events.__all__ +
26+
exceptions.__all__ +
3327
futures.__all__ +
3428
locks.__all__ +
3529
protocols.__all__ +
@@ -38,6 +32,7 @@
3832
streams.__all__ +
3933
subprocess.__all__ +
4034
tasks.__all__ +
35+
threads.__all__ +
4136
transports.__all__)
4237

4338
if sys.platform == 'win32': # pragma: no cover

0 commit comments

Comments
 (0)
0