]> granicus.if.org Git - python/commitdiff
PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().
authorGuido van Rossum <guido@python.org>
Tue, 9 Oct 2007 21:55:58 +0000 (21:55 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 9 Oct 2007 21:55:58 +0000 (21:55 +0000)
Objects/fileobject.c

index 8175404212711a48fc699b187625a99da9615f73..02675f5f3efd0f59aa9efed8475d434f021ab8f2 100644 (file)
@@ -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;