diff options
author | Eric Smith <eric@trueblade.com> | 2008-02-24 21:44:34 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-02-24 21:44:34 (GMT) |
commit | ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618 (patch) | |
tree | 73c6d27cabda4bae8faf55a66cf7b7721d483394 /Objects | |
parent | 98cda25eb0eaba5017a3958c48462e26f5fff436 (diff) | |
download | cpython-ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618.zip cpython-ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618.tar.gz cpython-ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618.tar.bz2 |
Corrected assert to check for correct type in py3k.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringlib/string_format.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index e776242..214b7b3 100644 --- a/Objects/stringlib/string_format.h +++ b/Objects/stringlib/string_format.h @@ -494,7 +494,7 @@ render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output) goto done; #if PY_VERSION_HEX >= 0x03000000 - assert(PyString_Check(result)); + assert(PyUnicode_Check(result)); #else assert(PyString_Check(result) || PyUnicode_Check(result)); |