]> granicus.if.org Git - python/commitdiff
Remove some extraneous parentheses and swap the comparison order to
authorBrett Cannon <brett@python.org>
Tue, 7 Jun 2011 03:20:36 +0000 (20:20 -0700)
committerBrett Cannon <brett@python.org>
Tue, 7 Jun 2011 03:20:36 +0000 (20:20 -0700)
prevent accidental assignment.

Silences a warning from LLVM/clang 2.9.

Modules/arraymodule.c

index 533f404f91ad7c28c6bdccd9e0df08d7a1d9f0b5..38ae5c73879e36b23d8de0901975d9be56b70814 100644 (file)
@@ -2091,7 +2091,7 @@ array_repr(arrayobject *a)
     if (len == 0) {
         return PyUnicode_FromFormat("array('%c')", (int)typecode);
     }
-    if ((typecode == 'u'))
+    if ('u' == typecode)
         v = array_tounicode(a, NULL);
     else
         v = array_tolist(a, NULL);