]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Corrected assert to check for correct type in py3k.
authorEric Smith <eric@trueblade.com>
Sun, 24 Feb 2008 21:44:34 +0000 (21:44 +0000)
committerEric Smith <eric@trueblade.com>
Sun, 24 Feb 2008 21:44:34 +0000 (21:44 +0000)
Objects/stringlib/string_format.h

index e7762429a772ecf9f557af8928161bedaa703ece..214b7b33ab7335a449750a6ebeab6143a8318cf5 100644 (file)
@@ -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));