diff options
author | Eric Smith <eric@trueblade.com> | 2008-02-24 21:41:49 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-02-24 21:41:49 (GMT) |
commit | 4b051eecb94ec927d0b5bda90609562e0772788a (patch) | |
tree | 0ed39b841c6bba755bcb1a7a01b1cb0fee605bbf /Objects/stringlib | |
parent | 6057b2e645dd3b7a262553d5a547ef45d3fc5d93 (diff) | |
download | cpython-4b051eecb94ec927d0b5bda90609562e0772788a.zip cpython-4b051eecb94ec927d0b5bda90609562e0772788a.tar.gz cpython-4b051eecb94ec927d0b5bda90609562e0772788a.tar.bz2 |
Corrected assert to check for correct type in py3k.
Diffstat (limited to 'Objects/stringlib')
-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)); |