projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5049f0
)
fix format string in __Pyx_AddTraceback() to let it match input types (line number...
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 9 Aug 2008 12:12:23 +0000
(14:12 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 9 Aug 2008 12:12:23 +0000
(14:12 +0200)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 5d43e81f322c282a42e4f6443a0f1b990396ae19..b39fc13dff18584a922a0fb79fecec1e61250d61 100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-4448,9
+4448,9
@@
static void __Pyx_AddTraceback(const char *funcname) {
if (!py_srcfile) goto bad;
if (%(CLINENO)s) {
#if PY_MAJOR_VERSION < 3
- py_funcname = PyString_FromFormat( "%%s (%%s:%%
u
)", funcname, %(CFILENAME)s, %(CLINENO)s);
+ py_funcname = PyString_FromFormat( "%%s (%%s:%%
d
)", funcname, %(CFILENAME)s, %(CLINENO)s);
#else
- py_funcname = PyUnicode_FromFormat( "%%s (%%s:%%
u
)", funcname, %(CFILENAME)s, %(CLINENO)s);
+ py_funcname = PyUnicode_FromFormat( "%%s (%%s:%%
d
)", funcname, %(CFILENAME)s, %(CLINENO)s);
#endif
}
else {