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
105f3d4f
Commit
105f3d4f
authored
Mar 31, 2008
by
Jeffrey Yasskin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Block the sys.exc_clear -3 warning from threading.py.
parent
e34c21c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/threading.py
Lib/threading.py
+7
-0
No files found.
Lib/threading.py
View file @
105f3d4f
...
@@ -8,6 +8,7 @@ except ImportError:
...
@@ -8,6 +8,7 @@ except ImportError:
del
_sys
.
modules
[
__name__
]
del
_sys
.
modules
[
__name__
]
raise
raise
import
warnings
from
time
import
time
as
_time
,
sleep
as
_sleep
from
time
import
time
as
_time
,
sleep
as
_sleep
from
traceback
import
format_exc
as
_format_exc
from
traceback
import
format_exc
as
_format_exc
from
collections
import
deque
from
collections
import
deque
...
@@ -24,6 +25,12 @@ ThreadError = thread.error
...
@@ -24,6 +25,12 @@ ThreadError = thread.error
del
thread
del
thread
# sys.exc_clear is used to work around the fact that except blocks
# don't fully clear the exception until 3.0.
warnings
.
filterwarnings
(
'ignore'
,
category
=
DeprecationWarning
,
module
=
'threading'
,
message
=
'sys.exc_clear'
)
# Debug support (adapted from ihooks.py).
# Debug support (adapted from ihooks.py).
# All the major classes here derive from _Verbose. We force that to
# All the major classes here derive from _Verbose. We force that to
# be a new-style class so that all the major classes here are new-style.
# be a new-style class so that all the major classes here are new-style.
...
...
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