Commit 9e094092 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Deprecation is overkill.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26262 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f6c73ee7
......@@ -69,7 +69,8 @@ class DomainTool(BaseTool):
Search all predicates which corresponds to this particular
context.
- sort_method parameter is deprecated: use sort_key_method instead.
- sort_method parameter should not be used, if possible, because
it can be very slow. Use sort_key_method instead.
- sort_key_method parameter is passed to list.sort as key parameter if it
is not None. This allows to sort the list of predicates found. The most
......@@ -208,8 +209,6 @@ class DomainTool(BaseTool):
if sort_key_method is not None:
result_list.sort(key=sort_key_method)
elif sort_method is not None:
LOG('searchPredicateList', 0,
'sort_method parameter is deprecated: sort_key_method instead')
result_list.sort(cmp=sort_method)
# LOG('searchPredicateList, result_list after sort', 0, result_list)
return result_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment