mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Renamed PyString to PyBytes
This commit is contained in:
parent
9c4756ea26
commit
72b710a596
78 changed files with 983 additions and 983 deletions
|
@ -496,7 +496,7 @@ render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
|
|||
#if PY_VERSION_HEX >= 0x03000000
|
||||
assert(PyUnicode_Check(result));
|
||||
#else
|
||||
assert(PyString_Check(result) || PyUnicode_Check(result));
|
||||
assert(PyBytes_Check(result) || PyUnicode_Check(result));
|
||||
|
||||
/* Convert result to our type. We could be str, and result could
|
||||
be unicode */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue