commit | 4a5e5de03f47b7076fc0eabc9817a59efd20049d | [log] [tgz] |
---|---|---|
author | Brett Cannon <brett@python.org> | Tue Jun 07 20:09:32 2011 -0700 |
committer | Brett Cannon <brett@python.org> | Tue Jun 07 20:09:32 2011 -0700 |
tree | 79808972d8b912325272d6635c174787f97a6a1f | |
parent | ef3062f7afec3a6f291050beaa6ef5d56f7047f3 [diff] |
Revert a reversed comparison order introduced in r70695.
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 38ae5c7..ae68c15 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c
@@ -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);