mirror of https://github.com/python/cpython.git
PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().
This commit is contained in:
parent
762d4a4164
commit
e518bf3c49
|
@ -145,7 +145,7 @@ PyFile_WriteObject(PyObject *v, PyObject *f, int flags)
|
|||
value = _PyObject_Str(v);
|
||||
}
|
||||
else
|
||||
value = PyObject_ReprStr8(v);
|
||||
value = PyObject_Repr(v);
|
||||
if (value == NULL) {
|
||||
Py_DECREF(writer);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue