[Python] Fix format string bug (SF#1882220).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1cdeba102f
commit
9a74c3a918
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
Version 1.3.34 (in progress)
|
Version 1.3.34 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
02/01/2008: olly
|
||||||
|
[Python] Fix format string bug (SF#1882220).
|
||||||
|
|
||||||
01/31/2008: wsfulton
|
01/31/2008: wsfulton
|
||||||
Additions to the %types directive. Now the conversion / casting code can be
|
Additions to the %types directive. Now the conversion / casting code can be
|
||||||
overridden to some custom code in the %types directive, like so:
|
overridden to some custom code in the %types directive, like so:
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ SWIG_Python_AddErrorMsg(const char* mesg)
|
||||||
Py_DECREF(old_str);
|
Py_DECREF(old_str);
|
||||||
Py_DECREF(value);
|
Py_DECREF(value);
|
||||||
} else {
|
} else {
|
||||||
PyErr_Format(PyExc_RuntimeError, mesg);
|
PyErr_SetString(PyExc_RuntimeError, mesg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue