summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-02-24 21:41:49 (GMT)
committerEric Smith <eric@trueblade.com>2008-02-24 21:41:49 (GMT)
commit4b051eecb94ec927d0b5bda90609562e0772788a (patch)
tree0ed39b841c6bba755bcb1a7a01b1cb0fee605bbf /Objects
parent6057b2e645dd3b7a262553d5a547ef45d3fc5d93 (diff)
downloadcpython-4b051eecb94ec927d0b5bda90609562e0772788a.zip
cpython-4b051eecb94ec927d0b5bda90609562e0772788a.tar.gz
cpython-4b051eecb94ec927d0b5bda90609562e0772788a.tar.bz2
Corrected assert to check for correct type in py3k.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringlib/string_format.h2
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));