diff options
author | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 (GMT) |
commit | 37f10386f1bedb992f3d9770b2f71b5edda2abbe (patch) | |
tree | 7c258bc40124636d938c6f7d61840c29fb7952cd /Python | |
parent | a95207ab3bce39b8278fc479d1d391365ffc7a7c (diff) | |
download | cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.zip cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.tar.gz cpython-37f10386f1bedb992f3d9770b2f71b5edda2abbe.tar.bz2 |
Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c4fc57d..6675abf 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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 */ |