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
b6a95567
Commit
b6a95567
authored
Aug 22, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a few get_name() calls and turn then to .name
Reviewer: Christian Heimes
parent
1cc69636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/threading.py
Lib/threading.py
+4
-4
No files found.
Lib/threading.py
View file @
b6a95567
...
...
@@ -67,7 +67,7 @@ if __debug__:
if
self
.
__verbose
:
format
=
format
%
args
format
=
"%s: %s
\
n
"
%
(
current_thread
().
get_name
()
,
format
)
current_thread
().
name
,
format
)
_sys
.
stderr
.
write
(
format
)
else
:
...
...
@@ -110,7 +110,7 @@ class _RLock(_Verbose):
owner
=
self
.
__owner
return
"<%s(%s, %d)>"
%
(
self
.
__class__
.
__name__
,
owner
and
owner
.
get_name
()
,
owner
and
owner
.
name
,
self
.
__count
)
def
acquire
(
self
,
blocking
=
1
):
...
...
@@ -534,7 +534,7 @@ class Thread(_Verbose):
# self.
if
_sys
:
_sys
.
stderr
.
write
(
"Exception in thread %s:
\
n
%s
\
n
"
%
(
self
.
get_name
()
,
_format_exc
()))
(
self
.
name
,
_format_exc
()))
else
:
# Do the best job possible w/o a huge amt. of code to
# approximate a traceback (code ideas from
...
...
@@ -542,7 +542,7 @@ class Thread(_Verbose):
exc_type
,
exc_value
,
exc_tb
=
self
.
__exc_info
()
try
:
print
>>
self
.
__stderr
,
(
"Exception in thread "
+
self
.
get_name
()
+
"Exception in thread "
+
self
.
name
+
" (most likely raised during interpreter shutdown):"
)
print
>>
self
.
__stderr
,
(
"Traceback (most recent call last):"
)
...
...
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