summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-21 22:25:01 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-21 22:25:01 (GMT)
commit565798d4930cf3b557ee43505c21a05d926210d3 (patch)
tree3596ad599f72bd336e91bf7149244f5145930536 /Objects
parent031a68fe5fcbf9825e44f269ac16d061af13c18a (diff)
downloadcpython-565798d4930cf3b557ee43505c21a05d926210d3.zip
cpython-565798d4930cf3b557ee43505c21a05d926210d3.tar.gz
cpython-565798d4930cf3b557ee43505c21a05d926210d3.tar.bz2
Be less naive about null characters in an object's repr().
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 1a1ed52..3289aba 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -188,8 +188,8 @@ PyObject_Print(op, fp, flags)
ret = -1;
}
else {
- fprintf(fp, "%s",
- PyString_AsString(s));
+ ret = PyObject_Print(s, fp,
+ Py_PRINT_RAW);
}
Py_XDECREF(s);
}