summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-13 02:00:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-13 02:00:47 (GMT)
commitb03ca4bc687da31942e3e9e3a923e1c4ebfc4453 (patch)
treea0f728ac9592bb20e41cee4e19ec9e1126d9868c /Lib/threading.py
parent2d9a086410546ef86358220eab652e03cd5ae5ab (diff)
downloadcpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.zip
cpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.tar.gz
cpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.tar.bz2
fix more threading API related bugs
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 934eeae..cfa9a10 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -856,7 +856,7 @@ def _test():
P = []
for i in range(NP):
t = ProducerThread(Q, NI)
- t.setName("Producer-%d" % (i+1))
+ t.set_name("Producer-%d" % (i+1))
P.append(t)
C = ConsumerThread(Q, NI*NP)
for t in P: