Skip to content

Commit 4ff3f9d

Browse files
author
Bilal Al
committed
return __anext__ for all python versions above 2
1 parent 505ab99 commit 4ff3f9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

splitio/optional/loaders.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ def missing_asyncio_dependencies(*_, **__):
1717
async def _anext(it):
1818
return await it.__anext__()
1919

20-
if sys.version_info.major < 3 or sys.version_info.minor < 10:
21-
anext = _anext
20+
if sys.version_info.major > 2:
21+
anext = _anext
22+
else:
23+
anext = "Asyncio is not supported"

0 commit comments

Comments
 (0)