Mercurial > cpython-lru_cache-weakref
diff Objects/stringlib/string_format.h @ 45509:09c9ceecdd56
Corrected assert to check for correct type in py3k.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Sun, 24 Feb 2008 21:44:34 +0000 |
| parents | 8ece5ca4a785 |
| children | 3d9ad27d930b |
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h Sun Feb 24 21:43:18 2008 +0000 +++ b/Objects/stringlib/string_format.h Sun Feb 24 21:44:34 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));
