From: Stefan Behnel Date: Thu, 19 Dec 2013 21:43:12 +0000 (+0100) Subject: fix refnanny error output in Py3 X-Git-Tag: 0.20b1~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71f693f8a4abe427a4879d3c933cd597e90053e6;p=platform%2Fupstream%2Fpython-cython.git fix refnanny error output in Py3 --- diff --git a/Cython/Runtime/refnanny.pyx b/Cython/Runtime/refnanny.pyx index 1f7e85f..80ec3f4 100644 --- a/Cython/Runtime/refnanny.pyx +++ b/Cython/Runtime/refnanny.pyx @@ -159,7 +159,8 @@ cdef void FinishContext(PyObject** ctx): 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: