]> granicus.if.org Git - python/commitdiff
Revert a reversed comparison order introduced in r70695.
authorBrett Cannon <brett@python.org>
Wed, 8 Jun 2011 03:09:32 +0000 (20:09 -0700)
committerBrett Cannon <brett@python.org>
Wed, 8 Jun 2011 03:09:32 +0000 (20:09 -0700)
Modules/arraymodule.c

index 38ae5c73879e36b23d8de0901975d9be56b70814..ae68c15e7752dcbb7b5336c2ef67016ec9e9dda2 100644 (file)
@@ -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);