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
250432df
Commit
250432df
authored
Jun 09, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of tabnanny's last complaints.
parent
57cba449
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/threading.py
Lib/threading.py
+3
-3
No files found.
Lib/threading.py
View file @
250432df
...
...
@@ -320,7 +320,7 @@ class Thread(_Verbose):
def
__init__
(
self
,
group
=
None
,
target
=
None
,
name
=
None
,
args
=
(),
kwargs
=
{},
verbose
=
None
):
assert
group
is
None
,
"group argument must be None for now"
assert
group
is
None
,
"group argument must be None for now"
_Verbose
.
__init__
(
self
,
verbose
)
self
.
__target
=
target
self
.
__name
=
str
(
name
or
_newname
())
...
...
@@ -404,14 +404,14 @@ class Thread(_Verbose):
def
join
(
self
,
timeout
=
None
):
assert
self
.
__initialized
,
"Thread.__init__() not called"
assert
self
.
__started
,
"cannot join thread before it is started"
assert
self
.
__started
,
"cannot join thread before it is started"
assert
self
is
not
currentThread
(),
"cannot join current thread"
if
__debug__
:
if
not
self
.
__stopped
:
self
.
_note
(
"%s.join(): waiting until thread stops"
,
self
)
self
.
__block
.
acquire
()
if
timeout
is
None
:
while
not
self
.
__stopped
:
while
not
self
.
__stopped
:
self
.
__block
.
wait
()
if
__debug__
:
self
.
_note
(
"%s.join(): thread stopped"
,
self
)
...
...
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