Commit e4f83c1d authored by Georg Brandl's avatar Georg Brandl

Fix PyString_Format so that the "%s" format works again when Unicode is not

enabled.
parent a3c8fc7f
......@@ -4083,7 +4083,9 @@ PyString_Format(PyObject *format, PyObject *args)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment