changed the sort order of generated keywords 'cause reality revealed the advantage

This commit is contained in:
phear 2006-04-11 17:46:37 +00:00
parent 08ce5ed258
commit 8ad7b0493b

View file

@ -21,8 +21,8 @@ class KeywordGenerator:
[given string]
"""
ret = '%s\n' % keywords
#ret += '"%s"\n' % keywords
#ret += '[%s]\n' % keywords
ret += '"%s"\n' % keywords
ret += '[%s]\n' % keywords
return ret
def arg_string_to_list(self,s):
@ -42,12 +42,13 @@ class KeywordGenerator:
list1 = self.arg_string_to_list(l1)
list2 = self.arg_string_to_list(l2)
list3 = self.arg_string_to_list(l3)
for list1item in list1:
for list2item in list2:
tmplist1 = []
tmplist1 = self.add_prefix_to_strings(list1item+" ",list2)
for tmplist1item in tmplist1:
tmplist1 = self.add_prefix_to_strings(list2item+" ",list3)
for list1item in list1:
tmplist2 = []
tmplist2 = self.add_prefix_to_strings(tmplist1item+" ",list3)
tmplist2 = self.add_prefix_to_strings(list1item+" ",tmplist1)
for tmplist2item in tmplist2:
ret += self.quotes_and_braces(tmplist2item)
ret += "\n"