Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bed17101
Commit
bed17101
authored
Nov 29, 2008
by
Amaury Forgeot d'Arc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more threading API related bugs: Thread.get_name() --> Thread.name.
Seen when setting RPCHandler.debugging=True
parent
47c2b607
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Lib/idlelib/rpc.py
Lib/idlelib/rpc.py
+2
-2
Lib/idlelib/run.py
Lib/idlelib/run.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/rpc.py
View file @
bed17101
...
@@ -106,7 +106,7 @@ class RPCServer(socketserver.TCPServer):
...
@@ -106,7 +106,7 @@ class RPCServer(socketserver.TCPServer):
erf
=
sys
.
__stderr__
erf
=
sys
.
__stderr__
print
(
'
\
n
'
+
'-'
*
40
,
file
=
erf
)
print
(
'
\
n
'
+
'-'
*
40
,
file
=
erf
)
print
(
'Unhandled server exception!'
,
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
(
'Client Address: '
,
client_address
,
file
=
erf
)
print
(
'Request: '
,
repr
(
request
),
file
=
erf
)
print
(
'Request: '
,
repr
(
request
),
file
=
erf
)
traceback
.
print_exc
(
file
=
erf
)
traceback
.
print_exc
(
file
=
erf
)
...
@@ -149,7 +149,7 @@ class SocketIO(object):
...
@@ -149,7 +149,7 @@ class SocketIO(object):
def
debug
(
self
,
*
args
):
def
debug
(
self
,
*
args
):
if
not
self
.
debugging
:
if
not
self
.
debugging
:
return
return
s
=
self
.
location
+
" "
+
str
(
threading
.
current_thread
().
get_name
()
)
s
=
self
.
location
+
" "
+
str
(
threading
.
current_thread
().
name
)
for
a
in
args
:
for
a
in
args
:
s
=
s
+
" "
+
str
(
a
)
s
=
s
+
" "
+
str
(
a
)
print
(
s
,
file
=
sys
.
__stderr__
)
print
(
s
,
file
=
sys
.
__stderr__
)
...
...
Lib/idlelib/run.py
View file @
bed17101
...
@@ -230,7 +230,7 @@ class MyRPCServer(rpc.RPCServer):
...
@@ -230,7 +230,7 @@ class MyRPCServer(rpc.RPCServer):
erf
=
sys
.
__stderr__
erf
=
sys
.
__stderr__
print
(
'
\
n
'
+
'-'
*
40
,
file
=
erf
)
print
(
'
\
n
'
+
'-'
*
40
,
file
=
erf
)
print
(
'Unhandled server exception!'
,
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
(
'Client Address: '
,
client_address
,
file
=
erf
)
print
(
'Request: '
,
repr
(
request
),
file
=
erf
)
print
(
'Request: '
,
repr
(
request
),
file
=
erf
)
traceback
.
print_exc
(
file
=
erf
)
traceback
.
print_exc
(
file
=
erf
)
...
...
Misc/NEWS
View file @
bed17101
...
@@ -24,6 +24,9 @@ Core and Builtins
...
@@ -24,6 +24,9 @@ Core and Builtins
Library
Library
-------
-------
- IDLE would print a "Unhandled server exception!" message when internal
debugging is enabled.
- Issue #4455: IDLE failed to display the windows list when two windows have
- Issue #4455: IDLE failed to display the windows list when two windows have
the same title.
the same title.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment