From 4a5e5de03f47b7076fc0eabc9817a59efd20049d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 7 Jun 2011 20:09:32 -0700 Subject: Revert a reversed comparison order introduced in r70695. --- Modules/arraymodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 38ae5c7..ae68c15 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); -- cgit v0.12