Commit 77dd4a93 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use sort(key=) instead of sort(cmp=) for better performance.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5935113a
......@@ -78,7 +78,7 @@
\n
# It is necessary to sort the modules by translated titles for convenience.\n
titled_module_list = [(module.getTranslatedTitle(), module) for module in module_list]\n
titled_module_list.sort(lambda a,b: cmp(a[0], b[0]))\n
titled_module_list.sort(key=lambda x: x[0])\n
\n
view_list = []\n
add_list = []\n
......
614
\ No newline at end of file
615
\ No newline at end of file
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