From f4b9196defbd62dbe56e156028350ce0c1ff8d79 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 29 Sep 2008 05:13:04 +0000 Subject: [PATCH] Fix UnboundLocalError (remove an undefined variable). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23877 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py index f3063509f4..63338ccf66 100644 --- a/product/ERP5Type/Utils.py +++ b/product/ERP5Type/Utils.py @@ -144,7 +144,7 @@ def sortValueList(value_list, sort_on=None, sort_order=None, **kw): if result != 0: break return result - sort_kw = {'cmp':sortValues, 'reverse':reverse} + sort_kw = {'cmp':sortValues} sort_kw_cache[sort_on] = sort_kw if isinstance(value_list, LazyMap): -- 2.30.9