diff options
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 0069fc1..6f17e7a 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -574,7 +574,7 @@ func_dealloc(PyFunctionObject *op) static PyObject* func_repr(PyFunctionObject *op) { - return PyString_FromFormat("<function %s at %p>", + return PyUnicode_FromFormat("<function %s at %p>", PyString_AsString(op->func_name), op); } |