ez-a-sync 0.32.15__cp311-cp311-win32.whl → 0.32.16__cp311-cp311-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/_smart.c +1036 -1382
- a_sync/_smart.cp311-win32.pyd +0 -0
- a_sync/_smart.pyx +10 -18
- a_sync/a_sync/_descriptor.cp311-win32.pyd +0 -0
- a_sync/a_sync/_flags.cp311-win32.pyd +0 -0
- a_sync/a_sync/_helpers.cp311-win32.pyd +0 -0
- a_sync/a_sync/_kwargs.cp311-win32.pyd +0 -0
- a_sync/a_sync/abstract.cp311-win32.pyd +0 -0
- a_sync/a_sync/base.cp311-win32.pyd +0 -0
- a_sync/a_sync/flags.cp311-win32.pyd +0 -0
- a_sync/a_sync/function.cp311-win32.pyd +0 -0
- a_sync/a_sync/method.cp311-win32.pyd +0 -0
- a_sync/a_sync/modifiers/manager.cp311-win32.pyd +0 -0
- a_sync/a_sync/property.cp311-win32.pyd +0 -0
- a_sync/async_property/cached.cp311-win32.pyd +0 -0
- a_sync/async_property/proxy.cp311-win32.pyd +0 -0
- a_sync/asyncio/as_completed.cp311-win32.pyd +0 -0
- a_sync/asyncio/create_task.c +680 -759
- a_sync/asyncio/create_task.cp311-win32.pyd +0 -0
- a_sync/asyncio/create_task.pyx +7 -2
- a_sync/asyncio/gather.cp311-win32.pyd +0 -0
- a_sync/asyncio/igather.c +1039 -1389
- a_sync/asyncio/igather.cp311-win32.pyd +0 -0
- a_sync/asyncio/igather.pyx +19 -12
- a_sync/asyncio/sleep.cp311-win32.pyd +0 -0
- a_sync/debugging.cp311-win32.pyd +0 -0
- a_sync/exceptions.cp311-win32.pyd +0 -0
- a_sync/functools.cp311-win32.pyd +0 -0
- a_sync/iter.cp311-win32.pyd +0 -0
- a_sync/primitives/_debug.cp311-win32.pyd +0 -0
- a_sync/primitives/_loggable.cp311-win32.pyd +0 -0
- a_sync/primitives/locks/counter.cp311-win32.pyd +0 -0
- a_sync/primitives/locks/event.cp311-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.cp311-win32.pyd +0 -0
- a_sync/primitives/locks/semaphore.cp311-win32.pyd +0 -0
- a_sync/utils/repr.cp311-win32.pyd +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.16.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.16.dist-info}/RECORD +41 -41
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.16.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.16.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.16.dist-info}/top_level.txt +0 -0
|
Binary file
|
a_sync/asyncio/create_task.pyx
CHANGED
|
@@ -8,8 +8,8 @@ import asyncio.tasks as aiotasks
|
|
|
8
8
|
import logging
|
|
9
9
|
import typing
|
|
10
10
|
|
|
11
|
-
from cpython.object cimport PyObject
|
|
12
11
|
from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
12
|
+
from cpython.version cimport PY_VERSION_HEX
|
|
13
13
|
|
|
14
14
|
from a_sync import _smart, exceptions
|
|
15
15
|
from a_sync._typing import T
|
|
@@ -19,6 +19,7 @@ from a_sync._typing import T
|
|
|
19
19
|
cdef object get_running_loop = asyncio.get_running_loop
|
|
20
20
|
cdef object iscoroutine = asyncio.iscoroutine
|
|
21
21
|
cdef object Future = asyncio.Future
|
|
22
|
+
cdef object CancelledError = asyncio.CancelledError
|
|
22
23
|
cdef object InvalidStateError = asyncio.InvalidStateError
|
|
23
24
|
cdef object Task = asyncio.Task
|
|
24
25
|
cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
@@ -232,7 +233,11 @@ cdef object _get_exception(fut: Future):
|
|
|
232
233
|
fut._Future__log_traceback = False
|
|
233
234
|
return fut._exception
|
|
234
235
|
if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
235
|
-
raise
|
|
236
|
+
raise (
|
|
237
|
+
CancelledError()
|
|
238
|
+
if PY_VERSION_HEX < 0x03090000 # Python 3.9
|
|
239
|
+
else fut._make_cancelled_error()
|
|
240
|
+
)
|
|
236
241
|
raise InvalidStateError('Exception is not set.')
|
|
237
242
|
|
|
238
243
|
|
|
Binary file
|