From: Brett Cannon Date: Wed, 8 Jun 2011 03:09:32 +0000 (-0700) Subject: Revert a reversed comparison order introduced in r70695. X-Git-Tag: v3.3.0a1~2157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a5e5de03f47b7076fc0eabc9817a59efd20049d;p=python Revert a reversed comparison order introduced in r70695. --- diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 38ae5c7387..ae68c15e77 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2091,7 +2091,7 @@ array_repr(arrayobject *a) if (len == 0) { return PyUnicode_FromFormat("array('%c')", (int)typecode); } - if ('u' == typecode) + if (typecode == 'u') v = array_tounicode(a, NULL); else v = array_tolist(a, NULL);