summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_threaded_import.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:02:52 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-30 21:02:52 (GMT)
commit2a12974bca2433eea0131d904a423ed8234dcf7a (patch)
treee238e53c319beb8f913e3411fa91a98504d1743d /Lib/test/test_threaded_import.py
parentd976098e3bb53b9c52d55a303e1389a102ed8bae (diff)
downloadcpython-2a12974bca2433eea0131d904a423ed8234dcf7a.zip
cpython-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.gz
cpython-2a12974bca2433eea0131d904a423ed8234dcf7a.tar.bz2
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/test/test_threaded_import.py')
-rw-r--r--Lib/test/test_threaded_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_threaded_import.py b/Lib/test/test_threaded_import.py
index 7791935..6919d21 100644
--- a/Lib/test/test_threaded_import.py
+++ b/Lib/test/test_threaded_import.py
@@ -30,7 +30,7 @@ def task(N, done, done_tasks, errors):
except Exception as e:
errors.append(e.with_traceback(None))
finally:
- done_tasks.append(thread.get_ident())
+ done_tasks.append(threading.get_ident())
finished = len(done_tasks) == N
if finished:
done.set()