diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-04 11:42:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 10:42:19 +0200 |
commit | 1b111338cfe7840feea95e30ea8124063c450c65 (patch) | |
tree | 307d93ae3f1bac05f23e802a149f36de598a2636 /Lib/asyncio/windows_events.py | |
parent | 3aa5242b54b0627293d95cfb4a26b2f917f667be (diff) | |
download | cpython-1b111338cfe7840feea95e30ea8124063c450c65.tar.gz cpython-1b111338cfe7840feea95e30ea8124063c450c65.zip |
bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352)
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r-- | Lib/asyncio/windows_events.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 5e7cd795895..8c3d73705e3 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -28,8 +28,8 @@ __all__ = ( ) -NULL = 0 -INFINITE = 0xffffffff +NULL = _winapi.NULL +INFINITE = _winapi.INFINITE ERROR_CONNECTION_REFUSED = 1225 ERROR_CONNECTION_ABORTED = 1236 @@ -405,7 +405,7 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop): class IocpProactor: """Proactor implementation using IOCP.""" - def __init__(self, concurrency=0xffffffff): + def __init__(self, concurrency=INFINITE): self._loop = None self._results = [] self._iocp = _overlapped.CreateIoCompletionPort( |