Be less naive about null characters in an object's repr().
This commit is contained in:
parent
031a68fe5f
commit
565798d493
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue