Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 70710:8587305b259b
Revert a reversed comparison order introduced in r70695.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Tue, 07 Jun 2011 20:09:32 -0700 |
| parents | fc282e375703 |
| children | d0b0fcbb40db |
line wrap: on
line diff
--- a/Modules/arraymodule.c Tue Jun 07 17:58:50 2011 +0200 +++ b/Modules/arraymodule.c Tue Jun 07 20:09:32 2011 -0700 @@ -2091,7 +2091,7 @@ if (len == 0) { return PyUnicode_FromFormat("array('%c')", (int)typecode); } - if ('u' == typecode) + if (typecode == 'u') v = array_tounicode(a, NULL); else v = array_tolist(a, NULL);
