summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.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/idlelib/run.py
parent2d9a086410546ef86358220eab652e03cd5ae5ab (diff)
downloadcpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.zip
cpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.tar.gz
cpython-b03ca4bc687da31942e3e9e3a923e1c4ebfc4453.tar.bz2
fix more threading API related bugs
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r--Lib/idlelib/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index 7a662c9..e2e9f69 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -73,7 +73,7 @@ def main(del_exitfunc=False):
sockthread = threading.Thread(target=manage_socket,
name='SockThread',
args=((LOCALHOST, port),))
- sockthread.setDaemon(True)
+ sockthread.set_daemon(True)
sockthread.start()
while 1:
try:
@@ -227,7 +227,7 @@ class MyRPCServer(rpc.RPCServer):
erf = sys.__stderr__
print('\n' + '-'*40, file=erf)
print('Unhandled server exception!', file=erf)
- print('Thread: %s' % threading.currentThread().getName(), file=erf)
+ print('Thread: %s' % threading.current_thread().get_name(), file=erf)
print('Client Address: ', client_address, file=erf)
print('Request: ', repr(request), file=erf)
traceback.print_exc(file=erf)