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
d7657d47
Commit
d7657d47
authored
Apr 03, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core.set_exc_info: do not assume type is None if value is None
parent
27dc0b20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gevent/core_.pyx
gevent/core_.pyx
+5
-3
No files found.
gevent/core_.pyx
View file @
d7657d47
...
...
@@ -551,12 +551,14 @@ def set_exc_info(object type, object value):
Py_XDECREF(<void*>tstate.exc_type)
Py_XDECREF(<void*>tstate.exc_value)
Py_XDECREF(<void*>tstate.exc_traceback)
if
valu
e is None:
if
typ
e is None:
tstate.exc_type = NULL
tstate.exc_value = NULL
else:
Py_INCREF(<void*>type)
Py_INCREF(<void*>value)
tstate.exc_type = <void*>type
if value is None:
tstate.exc_value = NULL
else:
Py_INCREF(<void*>value)
tstate.exc_value = <void *>value
tstate.exc_traceback = NULL
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