Mercurial > cpython-lru_cache-weakref
diff Objects/stringlib/string_format.h @ 47294:4fe192d48960 legacy-trunk
Renamed PyString to PyBytes
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 26 May 2008 12:51:38 +0000 |
| parents | 4e72489f16d0 |
| children | 52294af4b663 |
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h Mon May 26 12:29:46 2008 +0000 +++ b/Objects/stringlib/string_format.h Mon May 26 12:51:38 2008 +0000 @@ -496,7 +496,7 @@ #if PY_VERSION_HEX >= 0x03000000 assert(PyUnicode_Check(result)); #else - assert(PyString_Check(result) || PyUnicode_Check(result)); + assert(PyBytes_Check(result) || PyUnicode_Check(result)); /* Convert result to our type. We could be str, and result could be unicode */
