commit | e518bf3c49b9d43f99511516a36cd363649cc44e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Oct 09 21:55:58 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Oct 09 21:55:58 2007 +0000 |
tree | 8f42a1fc110937c246f71ee6bdb09326ade7ef86 | |
parent | 762d4a4164211076abfc31407523d906aa806686 [diff] [blame] |
PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 8175404..02675f5 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -145,7 +145,7 @@ value = _PyObject_Str(v); } else - value = PyObject_ReprStr8(v); + value = PyObject_Repr(v); if (value == NULL) { Py_DECREF(writer); return -1;