[Python-checkins] cpython: Remove some extraneous parentheses and swap the comparison order to
brett.cannon
python-checkins at python.org
Tue Jun 7 05:20:46 CEST 2011
http://hg.python.org/cpython/rev/fc282e375703
changeset: 70695:fc282e375703
user: Brett Cannon <brett at python.org>
date: Mon Jun 06 20:20:36 2011 -0700
summary:
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment.
Silences a warning from LLVM/clang 2.9.
files:
Modules/arraymodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list