Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
ec46093c
Commit
ec46093c
authored
May 11, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaner handling of errors at interpreter shutdown on Py2. Ref #802.
parent
8df44277
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/gevent/_compat.py
src/gevent/_compat.py
+1
-1
src/gevent/_tblib.py
src/gevent/_tblib.py
+4
-0
No files found.
src/gevent/_compat.py
View file @
ec46093c
...
...
@@ -29,7 +29,7 @@ else:
## Exceptions
if
PY3
:
def
reraise
(
t
,
value
,
tb
=
None
):
# pylint:disable=unused-argument
if
value
.
__traceback__
is
not
tb
:
if
value
.
__traceback__
is
not
tb
and
tb
is
not
None
:
raise
value
.
with_traceback
(
tb
)
raise
value
...
...
src/gevent/_tblib.py
View file @
ec46093c
...
...
@@ -329,6 +329,10 @@ def install():
def
_unlocked_imports
(
f
):
def
g
(
a
):
if
sys
is
None
:
# pragma: no cover
# interpreter shutdown on Py2
return
gb
=
None
if
'gevent.builtins'
in
sys
.
modules
:
gb
=
sys
.
modules
[
'gevent.builtins'
]
...
...
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