[Python-checkins] r61054 - python/trunk/Objects/stringlib/string_format.h

eric.smith python-checkins at python.org
Sun Feb 24 22:41:49 CET 2008


Author: eric.smith
Date: Sun Feb 24 22:41:49 2008
New Revision: 61054

Modified:
   python/trunk/Objects/stringlib/string_format.h
Log:
Corrected assert to check for correct type in py3k.

Modified: python/trunk/Objects/stringlib/string_format.h
==============================================================================
--- python/trunk/Objects/stringlib/string_format.h	(original)
+++ python/trunk/Objects/stringlib/string_format.h	Sun Feb 24 22:41:49 2008
@@ -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));
 


More information about the Python-checkins mailing list