Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Gwenaël Samain
cython
Commits
23d54261
Commit
23d54261
authored
Feb 12, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement 'raise ... from None' in Py3.3
--HG-- extra : rebase_source : 9ad9c4ea052a3eae0888f02a07ba4c40d62ddddf
parent
862249fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+6
-2
No files found.
Cython/Utility/Exceptions.c
View file @
23d54261
...
...
@@ -186,9 +186,13 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
goto
bad
;
}
if
(
cause
&&
cause
!=
Py_None
)
{
if
(
cause
)
{
PyObject
*
fixed_cause
;
if
(
PyExceptionClass_Check
(
cause
))
{
if
(
cause
==
Py_None
)
{
/* raise ... from None */
Py_DECREF
(
cause
);
fixed_cause
=
NULL
;
}
else
if
(
PyExceptionClass_Check
(
cause
))
{
fixed_cause
=
PyObject_CallObject
(
cause
,
NULL
);
if
(
fixed_cause
==
NULL
)
goto
bad
;
...
...
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