Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 35665:dc5d706283d6 legacy-trunk
Fix PyString_Format so that the "%s" format works again when Unicode is not
enabled.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 01 Oct 2005 17:06:00 +0000 |
| parents | f63e6960c5cf |
| children | 8bec120dbb16 |
line wrap: on
line diff
--- a/Objects/stringobject.c Sat Oct 01 16:32:31 2005 +0000 +++ b/Objects/stringobject.c Sat Oct 01 17:06:00 2005 +0000 @@ -4083,7 +4083,9 @@ argidx = argidx_start; goto unicode; } +#endif temp = _PyObject_Str(v); +#ifdef Py_USING_UNICODE if (temp != NULL && PyUnicode_Check(temp)) { Py_DECREF(temp); fmt = fmt_start;
