summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2007-09-01 10:56:01 (GMT)
committerEric Smith <eric@trueblade.com>2007-09-01 10:56:01 (GMT)
commit37f10386f1bedb992f3d9770b2f71b5edda2abbe (patch)
tree7c258bc40124636d938c6f7d61840c29fb7952cd /Python
parenta95207ab3bce39b8278fc479d1d391365ffc7a7c (diff)
downloadcpython-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.c2
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 */