Commit b4d8826f authored by Vincent Pelletier's avatar Vincent Pelletier

Do not reinvent string.join . Use it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58f5964f
......@@ -2104,12 +2104,7 @@ class Catalog(Folder,
if len(available_index_list) > 0:
# tell mysql to use these index
table = from_table_dict.pop(related_table)
index_list_string = ""
for index in available_index_list:
if len(index_list_string) == 0:
index_list_string += "%s" %index
else:
index_list_string += ", %s" %index
index_list_string = ', '.join(available_index_list)
table_with_index = "%s use index(%s)" %(related_table, index_list_string)
from_table_dict[table_with_index] = table
......
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