]> granicus.if.org Git - python/commitdiff
Avoid pulling threading when _thread is sufficient
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 11 Oct 2011 16:51:53 +0000 (18:51 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 11 Oct 2011 16:51:53 +0000 (18:51 +0200)
Lib/reprlib.py

index 092874a18feb4a570303eed89d5d10b28a5c96e9..f8033604da28da12dcad7d164580be638e51904a 100644 (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