Avoid pulling threading when _thread is sufficient
This commit is contained in:
parent
dc567e42f7
commit
bb0ad4cfa1
|
@ -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…
Reference in New Issue