mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix more threading API related bugs: Thread.get_name() --> Thread.name.
Seen when setting RPCHandler.debugging=True
This commit is contained in:
parent
47c2b607b8
commit
bed1710115
3 changed files with 6 additions and 3 deletions
|
@ -230,7 +230,7 @@ class MyRPCServer(rpc.RPCServer):
|
|||
erf = sys.__stderr__
|
||||
print('\n' + '-'*40, file=erf)
|
||||
print('Unhandled server exception!', file=erf)
|
||||
print('Thread: %s' % threading.current_thread().get_name(), file=erf)
|
||||
print('Thread: %s' % threading.current_thread().name, file=erf)
|
||||
print('Client Address: ', client_address, file=erf)
|
||||
print('Request: ', repr(request), file=erf)
|
||||
traceback.print_exc(file=erf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue