mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Avoid pulling threading when _thread is sufficient
This commit is contained in:
parent
dc567e42f7
commit
bb0ad4cfa1
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ __all__ = ["Repr", "repr", "recursive_repr"]
|
|||
import builtins
|
||||
from itertools import islice
|
||||
try:
|
||||
from threading import get_ident
|
||||
from _thread import get_ident
|
||||
except ImportError:
|
||||
from _dummy_thread import get_ident
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue