mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Corrected assert to check for correct type in py3k.
This commit is contained in:
parent
98cda25eb0
commit
ecbac8f38f
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
assert(PyString_Check(result));
|
assert(PyUnicode_Check(result));
|
||||||
#else
|
#else
|
||||||
assert(PyString_Check(result) || PyUnicode_Check(result));
|
assert(PyString_Check(result) || PyUnicode_Check(result));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue