From d09413012cb6b03fdae1439eaacc6076ce09f7b7 Mon Sep 17 00:00:00 2001 From: Walter Dörwald Date: Sun, 1 Jul 2007 21:58:22 +0000 Subject: Revert r56044 (which changed the %c format specifier to accept a unicode char into an int variable) and add %C which does this. --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/arraymodule.c') diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 6c9038af3df..253907757af 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1785,7 +1785,7 @@ array_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds)) return NULL; - if (!PyArg_ParseTuple(args, "c|O:array", &c, &initial)) + if (!PyArg_ParseTuple(args, "C|O:array", &c, &initial)) return NULL; if (!(initial == NULL || PyList_Check(initial) -- cgit v1.2.3