mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix PyString_Format so that the "%s" format works again when Unicode is not
enabled.
This commit is contained in:
parent
8b813db2ef
commit
d45014b236
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue