Commit aea963ef authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no need to use lambda because int() is a function.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23867 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 74083fad
...@@ -76,7 +76,7 @@ if hasattr(request, \'listbox\'):\n ...@@ -76,7 +76,7 @@ if hasattr(request, \'listbox\'):\n
keys_list = listbox.keys()\n keys_list = listbox.keys()\n
\n \n
if keys_list != []:\n if keys_list != []:\n
keys_list.sort(key=lambda x: int(x))\n keys_list.sort(key=int)\n
first_empty_line_id = int(keys_list[-1])+1\n first_empty_line_id = int(keys_list[-1])+1\n
\n \n
for i in keys_list:\n for i in keys_list:\n
......
969 970
\ No newline at end of file \ 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