Bug 3018: ImportGrdb: remove calls to keys() dictionary method where possible

svn: r12572
This commit is contained in:
Gerald Britton
2009-05-26 20:48:09 +00:00
parent 51f65aa02f
commit 5eb7e18dc6
47 changed files with 134 additions and 199 deletions

View File

@@ -92,9 +92,7 @@ class NodeTreeMap(object):
self.temp_sname_sub = {}
def build_toplevel(self):
mylist = self.temp_sname_sub.keys()
mylist.sort(locale.strcoll)
self.temp_top_path2iter = mylist
self.temp_top_path2iter = sorted(self.temp_sname_sub, locale.strcoll)
for name in self.temp_top_path2iter:
self.build_sub_entry(name)