Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 42139:1f7b66a9ffb0
Revert r56044 (which changed the %c format specifier to accept a
unicode char into an int variable) and add %C which does this.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Sun, 01 Jul 2007 21:58:22 +0000 |
| parents | 78bc078c7350 |
| children | 8eeaa9923901 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Sat Jun 30 23:44:36 2007 +0000 +++ b/Modules/arraymodule.c Sun Jul 01 21:58:22 2007 +0000 @@ -1785,7 +1785,7 @@ 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)
