mirror of https://github.com/python/cpython
Backport part of r86217: Fix issues when building without threads
This commit is contained in:
parent
80860381a5
commit
71431ef51a
|
@ -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…
Reference in New Issue