projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d5426
)
ignore 'raise ... from None' in Py<3.3
author
Stefan Behnel
<stefan_ml@behnel.de>
Tue, 12 Feb 2013 19:26:20 +0000
(20:26 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Tue, 12 Feb 2013 19:26:20 +0000
(20:26 +0100)
Cython/Utility/Exceptions.c
patch
|
blob
|
history
diff --git
a/Cython/Utility/Exceptions.c
b/Cython/Utility/Exceptions.c
index
2c11287
..
9f3d53a
100644
(file)
--- a/
Cython/Utility/Exceptions.c
+++ b/
Cython/Utility/Exceptions.c
@@
-186,7
+186,11
@@
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
goto bad;
}
+#if PY_VERSION_HEX >= 0x03030000
if (cause) {
+#else
+ if (cause && cause != Py_None) {
+#endif
PyObject *fixed_cause;
if (cause == Py_None) {
/* raise ... from None */