mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Backport part of r86217: Fix issues when building without threads
This commit is contained in:
parent
80860381a5
commit
71431ef51a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ from itertools import repeat as _repeat, chain as _chain, starmap as _starmap, \
|
|||
ifilter as _ifilter, imap as _imap
|
||||
try:
|
||||
from thread import get_ident
|
||||
except AttributeError:
|
||||
except ImportError:
|
||||
from dummy_thread import get_ident
|
||||
|
||||
def _recursive_repr(user_function):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue