mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().
This commit is contained in:
parent
762d4a4164
commit
e518bf3c49
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ PyFile_WriteObject(PyObject *v, PyObject *f, int flags)
|
||||||
value = _PyObject_Str(v);
|
value = _PyObject_Str(v);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
value = PyObject_ReprStr8(v);
|
value = PyObject_Repr(v);
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
Py_DECREF(writer);
|
Py_DECREF(writer);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue