mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
This commit is contained in:
parent
a95207ab3b
commit
37f10386f1
6 changed files with 16 additions and 21 deletions
|
@ -293,7 +293,7 @@ builtin_format(PyObject *self, PyObject *args)
|
|||
goto done;
|
||||
}
|
||||
|
||||
if (!PyArg_ParseTuple(args, "O|O:format", &value, &spec))
|
||||
if (!PyArg_ParseTuple(args, "O|U:format", &value, &spec))
|
||||
goto done;
|
||||
|
||||
/* initialize the default value */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue