From: Eric Smith Date: Sun, 24 Feb 2008 21:44:34 +0000 (+0000) Subject: Corrected assert to check for correct type in py3k. X-Git-Tag: v3.0a3~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecbac8f38f2900ccbcc1d6d1c38d8d2dc1055618;p=thirdparty%2FPython%2Fcpython.git Corrected assert to check for correct type in py3k. --- diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index e7762429a772..214b7b33ab73 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));