mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +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
|
ifilter as _ifilter, imap as _imap
|
||||||
try:
|
try:
|
||||||
from thread import get_ident
|
from thread import get_ident
|
||||||
except AttributeError:
|
except ImportError:
|
||||||
from dummy_thread import get_ident
|
from dummy_thread import get_ident
|
||||||
|
|
||||||
def _recursive_repr(user_function):
|
def _recursive_repr(user_function):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue