summaryrefslogtreecommitdiff
path: root/Cython/Runtime
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2013-12-19 22:43:12 +0100
committerStefan Behnel <stefan_ml@behnel.de>2013-12-19 22:43:12 +0100
commit71f693f8a4abe427a4879d3c933cd597e90053e6 (patch)
treeb6ff89a7ec64d40550e5a666088340ef56bd6d59 /Cython/Runtime
parent3e64927f57345e6a72204665eb13b2505a415641 (diff)
downloadcython-71f693f8a4abe427a4879d3c933cd597e90053e6.tar.gz
fix refnanny error output in Py3
Diffstat (limited to 'Cython/Runtime')
-rw-r--r--Cython/Runtime/refnanny.pyx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Runtime/refnanny.pyx b/Cython/Runtime/refnanny.pyx
index 1f7e85f1b..80ec3f4ba 100644
--- a/Cython/Runtime/refnanny.pyx
+++ b/Cython/Runtime/refnanny.pyx
@@ -159,7 +159,8 @@ cdef void FinishContext(PyObject** ctx):
context = <Context>ctx[0]
errors = context.end()
if errors:
- print u"%s: %s()" % (context.filename, context.name)
+ print u"%s: %s()" % (context.filename.decode('latin1'),
+ context.name.decode('latin1'))
print errors
context = None
except: