Skip to content

Commit 715d5bc

Browse files
authored
Merge pull request #541 from splitio/development
Release 10.0.1
2 parents 505ab99 + 718a98b commit 715d5bc

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
10.0.1 (Jun 28, 2024)
2+
- Fixed failure to load lib issue in SDK startup for Python versions higher than or equal to 3.10
3+
14
10.0.0 (Jun 27, 2024)
25
- Added support for asyncio library
36
- BREAKING CHANGE: Minimum supported Python version is 3.7.16

splitio/optional/loaders.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ def missing_asyncio_dependencies(*_, **__):
1616

1717
async def _anext(it):
1818
return await it.__anext__()
19-
20-
if sys.version_info.major < 3 or sys.version_info.minor < 10:
21-
anext = _anext

splitio/push/manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import logging
33
from threading import Timer
44
import abc
5-
from splitio.optional.loaders import asyncio, anext
5+
import sys
6+
7+
from splitio.optional.loaders import asyncio
68
from splitio.api import APIException
79
from splitio.util.time import get_current_epoch_time_ms
810
from splitio.push import AuthException
@@ -14,6 +16,9 @@
1416
from splitio.push.status_tracker import PushStatusTracker, Status, PushStatusTrackerAsync
1517
from 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__)

splitio/push/splitsse.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
import threading
44
from enum import Enum
55
import abc
6+
import sys
67

78
from splitio.push.sse import SSEClient, SSEClientAsync, SSE_EVENT_ERROR
89
from splitio.util.threadutil import EventGroup
910
from 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

splitio/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '10.0.0'
1+
__version__ = '10.0.1'

0 commit comments

Comments
 (0)