fix refnanny error output in Py3
authorStefan Behnel <stefan_ml@behnel.de>
Thu, 19 Dec 2013 21:43:12 +0000 (22:43 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Thu, 19 Dec 2013 21:43:12 +0000 (22:43 +0100)
Cython/Runtime/refnanny.pyx

index 1f7e85f..80ec3f4 100644 (file)
@@ -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: