ez-a-sync 0.32.15__cp39-cp39-musllinux_1_2_i686.whl → 0.32.16__cp39-cp39-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.

@@ -2,6 +2,8 @@ import asyncio
2
2
  from asyncio import futures, tasks
3
3
  from typing import Awaitable, Iterable, List, TypeVar
4
4
 
5
+ from cpython.version cimport PY_VERSION_HEX
6
+
5
7
  from a_sync import _smart
6
8
  from a_sync.a_sync._helpers cimport get_event_loop
7
9
 
@@ -80,10 +82,11 @@ cdef object cigather(object coros_or_futures, bint return_exceptions = False):
80
82
  # If gather is being cancelled we must propagate the
81
83
  # cancellation regardless of *return_exceptions* argument.
82
84
  # See issue 32684.
83
- try:
84
- exc = fut._make_cancelled_error()
85
- except AttributeError:
86
- exc = CancelledError()
85
+ exc = (
86
+ CancelledError()
87
+ if PY_VERSION_HEX < 0x03090000 # Python 3.9
88
+ else fut._make_cancelled_error()
89
+ )
87
90
  outer.set_exception(exc)
88
91
  else:
89
92
  outer.set_result([_get_result_or_exc(child) for child in children])
@@ -105,10 +108,11 @@ cdef object cigather(object coros_or_futures, bint return_exceptions = False):
105
108
  # Check if 'fut' is cancelled first, as
106
109
  # 'fut.exception()' will *raise* a CancelledError
107
110
  # instead of returning it.
108
- try:
109
- exc = fut._make_cancelled_error()
110
- except AttributeError:
111
- exc = CancelledError()
111
+ exc = (
112
+ CancelledError()
113
+ if PY_VERSION_HEX < 0x03090000 # Python 3.9
114
+ else fut._make_cancelled_error()
115
+ )
112
116
  outer.set_exception(exc)
113
117
  return
114
118
  else:
@@ -125,10 +129,11 @@ cdef object cigather(object coros_or_futures, bint return_exceptions = False):
125
129
  # If gather is being cancelled we must propagate the
126
130
  # cancellation regardless of *return_exceptions* argument.
127
131
  # See issue 32684.
128
- try:
129
- exc = fut._make_cancelled_error()
130
- except AttributeError:
131
- exc = CancelledError()
132
+ exc = (
133
+ CancelledError()
134
+ if PY_VERSION_HEX < 0x03090000 # Python 3.9
135
+ else fut._make_cancelled_error()
136
+ )
132
137
  outer.set_exception(exc)
133
138
  else:
134
139
  outer.set_result([_get_result_or_exc(child) for child in children])
@@ -162,6 +167,8 @@ cdef object _get_empty_result_set_fut(loop):
162
167
 
163
168
  cdef object _get_result_or_exc(fut: asyncio.Future):
164
169
  if fut.cancelled():
170
+ if PY_VERSION_HEX < 0x03090000:
171
+ return CancelledError()
165
172
  # Check if 'fut' is cancelled first, as 'fut.exception()'
166
173
  # will *raise* a CancelledError instead of returning it.
167
174
  # Also, since we're adding the exception return value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ez_a_sync
3
- Version: 0.32.15
3
+ Version: 0.32.16
4
4
  Summary: A library that makes it easy to define objects that can be used for both sync and async use cases.
5
5
  Home-page: https://github.com/BobTheBuidler/a-sync
6
6
  Author: BobTheBuidler
@@ -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=M_pxk1D2tQ8mQei-trBm5-mGkmYpibtgmYAG8_Fc_Jc,934419
5
- a_sync/_smart.cpython-39-i386-linux-gnu.so,sha256=U8VVUSADYdZR0Pa5LhGPHb4xAoG31BuAD7HIak1C8EA,923540
4
+ a_sync/_smart.c,sha256=F6BKemtVy0XMKg4EsgqzIf1oO_kBFHco7RKYRHAh5hk,917706
5
+ a_sync/_smart.cpython-39-i386-linux-gnu.so,sha256=E0D79bNiTf3iSiM6BLr9M1JB2swDhc5RYHBKwEg7TW8,903316
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=U61YXFAFcTi10YVXeCRgxJC2HykBPhLfpF0lS6zYfNQ,20241
8
+ a_sync/_smart.pyx,sha256=5ceSxpdh51l36-fKHHW9YI6lmc8_PlarM8fRIqzlI3A,19773
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
@@ -109,20 +109,20 @@ a_sync/asyncio/as_completed.cpython-39-i386-linux-gnu.so,sha256=HBtlzjJ65RUUahel
109
109
  a_sync/asyncio/as_completed.pxd,sha256=mISE2jdb2jOS0q3TKg0F_k-Zf-d3hzdBNKU1PT-Tn40,162
110
110
  a_sync/asyncio/as_completed.pyi,sha256=-VdtfMlX0XdkqJbJm8C0gEAi_BfRbkz3Xkdver6vHs4,3753
111
111
  a_sync/asyncio/as_completed.pyx,sha256=ar0gJ3iN6-4Jw8xy6i7KVJ54RnAGt1JWE85Wh6kPF48,9052
112
- a_sync/asyncio/create_task.c,sha256=KpPjTlsDn2GHSRAxB4BwQNCOSC8sWHSpJhKZkpO08Sw,606164
113
- a_sync/asyncio/create_task.cpython-39-i386-linux-gnu.so,sha256=S3u9BUmlcNHjog4hGnewXyvPypkDM0MNA58AXVO1bmw,594300
112
+ a_sync/asyncio/create_task.c,sha256=hx8mAgxWMzPEnVLvW8upI7afOc72rlhANXvgkjAF8Pc,603768
113
+ a_sync/asyncio/create_task.cpython-39-i386-linux-gnu.so,sha256=tvJ-SqWoeqFEBahE4w8xpMEhMUA-uY1Vws4OA3fayUA,594672
114
114
  a_sync/asyncio/create_task.pxd,sha256=x-sZVX-26NoqxYb5mH33uh2Mg-3AqqdYGXx4Ai7xZwU,143
115
115
  a_sync/asyncio/create_task.pyi,sha256=5H2z4k_2dGG2QTGjGEgP1N6ITuClYYWzkPbzaeQwKks,1864
116
- a_sync/asyncio/create_task.pyx,sha256=tMvH96pSYgxQamU5Vfaeq-5SdyC3aBXtBdi-PF5CwrA,8597
116
+ a_sync/asyncio/create_task.pyx,sha256=xB_f3WrTxaJ2h2zgy16VzDTMJtfc-GcTbjeGTGbz7f4,8771
117
117
  a_sync/asyncio/gather.c,sha256=MLhPvLSGGCpxgMNtiA8Xcx3nniDOLzMSVYnFbSFWukE,637555
118
118
  a_sync/asyncio/gather.cpython-39-i386-linux-gnu.so,sha256=okwkE4aA-hvplj4k21bgkwHzm7t4G0R5vI_2n4pKd6M,607208
119
119
  a_sync/asyncio/gather.pyi,sha256=7P_GapnZAz4z3xDZeg4wKpM1zD-6nVd15tRzG6b_jKk,4515
120
120
  a_sync/asyncio/gather.pyx,sha256=4ALHvhJPQsNtw7b9dsbhwmKpXEbiRzOCjMqagi3sTXs,8566
121
- a_sync/asyncio/igather.c,sha256=X7Pcp1euFrTaUY3fkHHfaYmYexKIPapI9I_NmFYpMG8,485487
122
- a_sync/asyncio/igather.cpython-39-i386-linux-gnu.so,sha256=2Id0_KVvCxCGFZaf0rKpA9EgPL-sb18l8X7Pi8WRTuw,472388
121
+ a_sync/asyncio/igather.c,sha256=467zCelfZro_nvIgmwbYFmceE45Cibb8JvpTMsKofM8,471337
122
+ a_sync/asyncio/igather.cpython-39-i386-linux-gnu.so,sha256=Oas_I5Ge9-jlkJhXudbtvPGj0kpqMMWA4r5K_X2u8e8,433996
123
123
  a_sync/asyncio/igather.pxd,sha256=M9hMUtgp6118pa0ddR9daQubvnceefnbt4pbvEl0doE,71
124
124
  a_sync/asyncio/igather.pyi,sha256=ms6FY78h_8D3aiuPsPo0h3AheTzLGy-73ja-s2gmW_A,201
125
- a_sync/asyncio/igather.pyx,sha256=TctS1kLzaYztLrZJmLwIOOvJTthKiEwsy-AaW1ObnKg,6325
125
+ a_sync/asyncio/igather.pyx,sha256=reJZ0Jkbx2MLu-LTrQ_hOPfhEdbFlPEQ9ro98sAcRRA,6574
126
126
  a_sync/asyncio/sleep.c,sha256=vrlY1_8dMSyk1ggO6tk5Td43gujjXiJAt2FFUgMMpoU,342937
127
127
  a_sync/asyncio/sleep.cpython-39-i386-linux-gnu.so,sha256=s5NDHXqn8p4A4G3V-ASIVk4GwHVDN-elB4XIceMWDSE,226140
128
128
  a_sync/asyncio/sleep.pyi,sha256=ab8OtiZm4Py0-sVQA2pzGVZiHUoTItkJG_Nd02xduuE,537
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
170
170
  a_sync/utils/repr.cpython-39-i386-linux-gnu.so,sha256=15pScYq5AOWLNsWGlSqqxzeD3MWHznpHGcmxzKfLwzg,526840
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.15.dist-info/METADATA,sha256=eBoOPV83KbkLoPxFk77LFMoc8j-7zK1fPnFmD3m2gCo,13197
174
- ez_a_sync-0.32.15.dist-info/WHEEL,sha256=FRTBvHiZr68KqalqhOSX6aK1htzqsWAmhrFNf1oIuHI,108
175
- ez_a_sync-0.32.15.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
176
- ez_a_sync-0.32.15.dist-info/RECORD,,
177
- ez_a_sync-0.32.15.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
173
+ ez_a_sync-0.32.16.dist-info/METADATA,sha256=77pIoXhGV52-rxzjyu5uLI0Cry77u9WpKZCB7RpHaiQ,13197
174
+ ez_a_sync-0.32.16.dist-info/WHEEL,sha256=FRTBvHiZr68KqalqhOSX6aK1htzqsWAmhrFNf1oIuHI,108
175
+ ez_a_sync-0.32.16.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
176
+ ez_a_sync-0.32.16.dist-info/RECORD,,
177
+ ez_a_sync-0.32.16.dist-info/licenses/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075