diff Objects/stringlib/string_format.h @ 45507:a77e1cf7ed25 legacy-trunk

Corrected assert to check for correct type in py3k.
author Eric Smith <eric@trueblade.com>
date Sun, 24 Feb 2008 21:41:49 +0000
parents 3fc586307d66
children 4e72489f16d0
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h	Sun Feb 24 18:47:03 2008 +0000
+++ b/Objects/stringlib/string_format.h	Sun Feb 24 21:41:49 2008 +0000
@@ -494,7 +494,7 @@
         goto done;
 
 #if PY_VERSION_HEX >= 0x03000000
-    assert(PyString_Check(result));
+    assert(PyUnicode_Check(result));
 #else
     assert(PyString_Check(result) || PyUnicode_Check(result));