projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
584da2d
)
fix for 'raise' decref bug unter Python <= 2.4 in error case
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 16 Feb 2008 12:21:36 +0000
(13:21 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 16 Feb 2008 12:21:36 +0000
(13:21 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 8204427cc4f7f52b15c35af41ff872cfe818cd66..942c1e4bb9ada3408873b4b0fe956a20fd372af7 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-3544,6
+3544,7
@@
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
Py_INCREF(type);
}
else {
+ type = 0;
PyErr_SetString(PyExc_TypeError,
"raise: exception must be an old-style class or instance");
goto raise_error;