ez-a-sync 0.32.13__cp38-cp38-musllinux_1_2_i686.whl → 0.32.14__cp38-cp38-musllinux_1_2_i686.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 +923 -557
- a_sync/_smart.cpython-38-i386-linux-gnu.so +0 -0
- a_sync/_smart.pyx +17 -1
- {ez_a_sync-0.32.13.dist-info → ez_a_sync-0.32.14.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.13.dist-info → ez_a_sync-0.32.14.dist-info}/RECORD +8 -8
- {ez_a_sync-0.32.13.dist-info → ez_a_sync-0.32.14.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.32.13.dist-info → ez_a_sync-0.32.14.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.13.dist-info → ez_a_sync-0.32.14.dist-info}/top_level.txt +0 -0
|
Binary file
|
a_sync/_smart.pyx
CHANGED
|
@@ -34,12 +34,12 @@ cdef object get_event_loop = asyncio.get_event_loop
|
|
|
34
34
|
cdef object AbstractEventLoop = asyncio.AbstractEventLoop
|
|
35
35
|
cdef object Future = asyncio.Future
|
|
36
36
|
cdef object Task = asyncio.Task
|
|
37
|
+
cdef object CancelledError = asyncio.CancelledError
|
|
37
38
|
cdef object InvalidStateError = asyncio.InvalidStateError
|
|
38
39
|
cdef dict[object, object] _current_tasks = asyncio.tasks._current_tasks
|
|
39
40
|
cdef object _future_init = asyncio.Future.__init__
|
|
40
41
|
cdef object _get_loop = asyncio.futures._get_loop
|
|
41
42
|
cdef object _task_init = asyncio.Task.__init__
|
|
42
|
-
del asyncio
|
|
43
43
|
|
|
44
44
|
# cdef logging
|
|
45
45
|
cdef public object logger = getLogger(__name__)
|
|
@@ -510,6 +510,22 @@ class SmartTask(Task, Generic[T]):
|
|
|
510
510
|
if _is_not_done(self):
|
|
511
511
|
(<set>self._waiters).remove(waiter)
|
|
512
512
|
|
|
513
|
+
def _make_cancelled_error(self) -> asyncio.CancelledError:
|
|
514
|
+
# this function is not present in python3.8 so we're backporting it
|
|
515
|
+
"""Create the CancelledError to raise if the Future is cancelled.
|
|
516
|
+
|
|
517
|
+
This should only be called once when handling a cancellation since
|
|
518
|
+
it erases the saved context exception value.
|
|
519
|
+
"""
|
|
520
|
+
if self._cancel_message is None:
|
|
521
|
+
exc = CancelledError()
|
|
522
|
+
else:
|
|
523
|
+
exc = CancelledError(self._cancel_message)
|
|
524
|
+
exc.__context__ = self._cancelled_exc
|
|
525
|
+
# Remove the reference since we don't need this anymore.
|
|
526
|
+
self._cancelled_exc = None
|
|
527
|
+
return exc
|
|
528
|
+
|
|
513
529
|
|
|
514
530
|
cdef object _SmartTask = SmartTask
|
|
515
531
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
a_sync/ENVIRONMENT_VARIABLES.py,sha256=YgIB8mQRqQBLbD3DdwMjx4ylqO8pK3GUvSNCerWJzx8,1280
|
|
2
2
|
a_sync/__init__.pxd,sha256=ol4jqkvuweaaU8GQU_Mq9rak8IIsagYTdhYhbKK74ac,81
|
|
3
3
|
a_sync/__init__.py,sha256=UrDqNkHGqvSY4O9wM9ObaoOP00cLq1sM-ucRnUvLyKk,5726
|
|
4
|
-
a_sync/_smart.c,sha256=
|
|
5
|
-
a_sync/_smart.cpython-38-i386-linux-gnu.so,sha256=
|
|
4
|
+
a_sync/_smart.c,sha256=MU5tUNswunerUCA92vy9xKOHAoNnSZzmyX7o1cHlzs8,930324
|
|
5
|
+
a_sync/_smart.cpython-38-i386-linux-gnu.so,sha256=Pu_v68c6m3T9NwOor5SnNdInBvJepnMbZIawD6paINI,956712
|
|
6
6
|
a_sync/_smart.pxd,sha256=3FlPqSvAtmGXIDFzfm7wpkvL6xt8z8w-vwow4Lura2g,76
|
|
7
7
|
a_sync/_smart.pyi,sha256=mUQwUiiSsMsbtJTKdXm076ua5B2A9USaKgjZq1Se_ZQ,5390
|
|
8
|
-
a_sync/_smart.pyx,sha256=
|
|
8
|
+
a_sync/_smart.pyx,sha256=nUPpICskkt4OeJ_bfDPO-NIiXKNSWqEP1HaVFQqFn7w,20164
|
|
9
9
|
a_sync/_typing.py,sha256=x24VIVjxz8sUWPmQR072pHAQxJO769Nn02f3eakFpe8,6850
|
|
10
10
|
a_sync/aliases.py,sha256=TbLyuLeFfJEmcC5-NP6h4DQ9QXlQjGny2NUP_x1tflw,212
|
|
11
11
|
a_sync/debugging.c,sha256=RfJnHds7wZdPmWg5PYc26nqjOQijqdOMMbGk43tvUhU,589339
|
|
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
|
|
|
170
170
|
a_sync/utils/repr.cpython-38-i386-linux-gnu.so,sha256=5aabeJ1nXQjazISYC3bPPQqTYU5MhHpnw036KvYNGgQ,554656
|
|
171
171
|
a_sync/utils/repr.pyi,sha256=PWdsa6sF9_3nBqEgLaxtaHty7o7gwL--jPqvcelHY10,131
|
|
172
172
|
a_sync/utils/repr.pyx,sha256=xdsVdK75Zi5pAoh-8qRG0q7F0ySAq1zDkksZw37FoL4,2632
|
|
173
|
-
ez_a_sync-0.32.
|
|
174
|
-
ez_a_sync-0.32.
|
|
175
|
-
ez_a_sync-0.32.
|
|
176
|
-
ez_a_sync-0.32.
|
|
177
|
-
ez_a_sync-0.32.
|
|
173
|
+
ez_a_sync-0.32.14.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
|
|
174
|
+
ez_a_sync-0.32.14.dist-info/METADATA,sha256=y9AWMeIFD3meKKAw1DccsJxkVZ0W_sJf_rm3NrGFpWY,12961
|
|
175
|
+
ez_a_sync-0.32.14.dist-info/WHEEL,sha256=bJYjb8WQy12IOgNJUB-nIaFYzFfCOeSKDIg7NuKd-h4,108
|
|
176
|
+
ez_a_sync-0.32.14.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
|
|
177
|
+
ez_a_sync-0.32.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|