Skip to content

Commit 9a37756

Browse files
committed
Fix Python 3.13 compat by adding missing attibute '_is_main_interpreter'
python/cpython#112826 Python 3.13 doesn't have workaround and so eventlet is broken with Python versions higher than 3.12. Fix eventlet#838 Fix eventlet#604
1 parent 33e05ca commit 9a37756

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eventlet/green/thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
LockType = Lock
1616
__threadcount = 0
1717

18+
_is_main_interpreter = __thread._is_main_interpreter
1819

1920
if six.PY3:
2021
def _set_sentinel():

0 commit comments

Comments
 (0)