Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a5e5de

Browse files
committed
Revert a reversed comparison order introduced in r70695.
1 parent ef3062f commit 4a5e5de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ array_repr(arrayobject *a)
20912091
if (len == 0) {
20922092
return PyUnicode_FromFormat("array('%c')", (int)typecode);
20932093
}
2094-
if ('u' == typecode)
2094+
if (typecode == 'u')
20952095
v = array_tounicode(a, NULL);
20962096
else
20972097
v = array_tolist(a, NULL);

0 commit comments

Comments
 (0)