Commit e518bf3c authored by Guido van Rossum's avatar Guido van Rossum

PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().

parent 762d4a41
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment