From 4b051eecb94ec927d0b5bda90609562e0772788a Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Sun, 24 Feb 2008 21:41:49 +0000 Subject: [PATCH] Corrected assert to check for correct type in py3k. --- Objects/stringlib/string_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index e7762429a77..214b7b33ab7 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));