diff Modules/arraymodule.c @ 70695:fc282e375703

Remove some extraneous parentheses and swap the comparison order to prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
author Brett Cannon <brett@python.org>
date Mon, 06 Jun 2011 20:20:36 -0700
parents b39270c6b8d1
children 8587305b259b
line wrap: on
line diff
--- a/Modules/arraymodule.c	Mon Jun 06 20:09:10 2011 -0700
+++ b/Modules/arraymodule.c	Mon Jun 06 20:20:36 2011 -0700
@@ -2091,7 +2091,7 @@
     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);