diff options
Diffstat (limited to 'bin/import-test.py')
-rw-r--r-- | bin/import-test.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/import-test.py b/bin/import-test.py index fe5ea2f..69e6cc7 100644 --- a/bin/import-test.py +++ b/bin/import-test.py @@ -40,11 +40,8 @@ class Dir: self.path = path self.entries = {} def call_for_each_entry(self, func): - entries = self.entries - names = entries.keys() - names.sort() - for name in names: - func(name, entries[name]) + for name in sorted(self.entries.keys()): + func(name, self.entries[name]) def lookup(dirname): global Top, TopPath |