Avoid pulling threading when _thread is sufficient

This commit is contained in:
Antoine Pitrou 2011-10-11 18:51:53 +02:00
parent dc567e42f7
commit bb0ad4cfa1
1 changed files with 1 additions and 1 deletions

View File

@ -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