summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2011-06-08 03:09:32 (GMT)
committerBrett Cannon <brett@python.org>2011-06-08 03:09:32 (GMT)
commit4a5e5de03f47b7076fc0eabc9817a59efd20049d (patch)
tree79808972d8b912325272d6635c174787f97a6a1f /Modules
parentef3062f7afec3a6f291050beaa6ef5d56f7047f3 (diff)
downloadcpython-4a5e5de03f47b7076fc0eabc9817a59efd20049d.zip
cpython-4a5e5de03f47b7076fc0eabc9817a59efd20049d.tar.gz
cpython-4a5e5de03f47b7076fc0eabc9817a59efd20049d.tar.bz2
Revert a reversed comparison order introduced in r70695.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
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 @@ array_repr(arrayobject *a)
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);