mirror of
https://github.com/python/cpython.git
synced 2025-09-18 22:50:26 +00:00
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment. Silences a warning from LLVM/clang 2.9.
This commit is contained in:
parent
c5011fe227
commit
a0b1ff5844
1 changed files with 1 additions and 1 deletions
|
@ -2091,7 +2091,7 @@ array_repr(arrayobject *a)
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
return PyUnicode_FromFormat("array('%c')", (int)typecode);
|
return PyUnicode_FromFormat("array('%c')", (int)typecode);
|
||||||
}
|
}
|
||||||
if ((typecode == 'u'))
|
if ('u' == typecode)
|
||||||
v = array_tounicode(a, NULL);
|
v = array_tounicode(a, NULL);
|
||||||
else
|
else
|
||||||
v = array_tolist(a, NULL);
|
v = array_tolist(a, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue