diff options
author | Guido van Rossum <guido@python.org> | 2007-10-09 21:55:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-09 21:55:58 (GMT) |
commit | e518bf3c49b9d43f99511516a36cd363649cc44e (patch) | |
tree | 8f42a1fc110937c246f71ee6bdb09326ade7ef86 /Objects/fileobject.c | |
parent | 762d4a4164211076abfc31407523d906aa806686 (diff) | |
download | cpython-e518bf3c49b9d43f99511516a36cd363649cc44e.zip cpython-e518bf3c49b9d43f99511516a36cd363649cc44e.tar.gz cpython-e518bf3c49b9d43f99511516a36cd363649cc44e.tar.bz2 |
PyFile_WriteObject() should use PyObject_Repr(), not _ReprStr8().
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |