[Python-checkins] cpython: Avoid pulling threading when _thread is sufficient
antoine.pitrou
python-checkins at python.org
Tue Oct 11 20:00:38 CEST 2011
http://hg.python.org/cpython/rev/3b81c1eae514
changeset: 72857:3b81c1eae514
parent: 72854:ed0bc92fed68
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Oct 11 18:51:53 2011 +0200
summary:
Avoid pulling threading when _thread is sufficient
files:
Lib/reprlib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/reprlib.py b/Lib/reprlib.py
--- a/Lib/reprlib.py
+++ b/Lib/reprlib.py
@@ -5,7 +5,7 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list