summaryrefslogtreecommitdiff
path: root/Lib/reprlib.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 23:02:52 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 23:02:52 +0200
commit2a12974bca2433eea0131d904a423ed8234dcf7a (patch)
treee238e53c319beb8f913e3411fa91a98504d1743d /Lib/reprlib.py
parentd976098e3bb53b9c52d55a303e1389a102ed8bae (diff)
downloadcpython-git-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.gz
Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by _thread.get_ident().
Diffstat (limited to 'Lib/reprlib.py')
-rw-r--r--Lib/reprlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/reprlib.py b/Lib/reprlib.py
index f8033604da..092874a18f 100644
--- a/Lib/reprlib.py
+++ b/Lib/reprlib.py
@@ -5,7 +5,7 @@ __all__ = ["Repr", "repr", "recursive_repr"]
import builtins
from itertools import islice
try:
- from _thread import get_ident
+ from threading import get_ident
except ImportError:
from _dummy_thread import get_ident