diff options
author | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-09-01 10:56:01 +0000 |
commit | 37f10386f1bedb992f3d9770b2f71b5edda2abbe (patch) | |
tree | 7c258bc40124636d938c6f7d61840c29fb7952cd /Python/bltinmodule.c | |
parent | a95207ab3bce39b8278fc479d1d391365ffc7a7c (diff) | |
download | cpython-git-37f10386f1bedb992f3d9770b2f71b5edda2abbe.tar.gz |
Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
Diffstat (limited to 'Python/bltinmodule.c')
-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 c4fc57df69..6675abfba2 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 */ |