diff Python/bltinmodule.c @ 43172:d842457e4b0e

Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects.
author Eric Smith <eric@trueblade.com>
date Sat, 01 Sep 2007 10:56:01 +0000
parents 8834e65683e7
children a311ab2fc1a7
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sat Sep 01 07:34:27 2007 +0000
+++ b/Python/bltinmodule.c	Sat Sep 01 10:56:01 2007 +0000
@@ -293,7 +293,7 @@
                         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 */