File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,3 @@ def missing_asyncio_dependencies(*_, **__):
1616
1717async def _anext (it ):
1818 return await it .__anext__ ()
19-
20- if sys .version_info .major == 3 and sys .version_info .minor < 10 :
21- anext = _anext
22- else :
23- anext = anext
Original file line number Diff line number Diff line change 22import logging
33from threading import Timer
44import abc
5- from splitio .optional .loaders import asyncio , anext
5+ import sys
6+
7+ from splitio .optional .loaders import asyncio
68from splitio .api import APIException
79from splitio .util .time import get_current_epoch_time_ms
810from splitio .push import AuthException
1416from splitio .push .status_tracker import PushStatusTracker , Status , PushStatusTrackerAsync
1517from splitio .models .telemetry import StreamingEventTypes
1618
19+ if sys .version_info .major == 3 and sys .version_info .minor < 10 :
20+ from splitio .optional .loaders import _anext as anext
21+
1722_TOKEN_REFRESH_GRACE_PERIOD = 10 * 60 # 10 minutes
1823
1924_LOGGER = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 33import threading
44from enum import Enum
55import abc
6+ import sys
67
78from splitio .push .sse import SSEClient , SSEClientAsync , SSE_EVENT_ERROR
89from splitio .util .threadutil import EventGroup
910from splitio .api import headers_from_metadata
10- from splitio .optional .loaders import anext , asyncio
11+ from splitio .optional .loaders import asyncio
12+
13+ if sys .version_info .major == 3 and sys .version_info .minor < 10 :
14+ from splitio .optional .loaders import _anext as anext
1115
1216_LOGGER = logging .getLogger (__name__ )
1317
You can’t perform that action at this time.
0 commit comments