diff options
author | lloyd <[email protected]> | 2010-07-09 13:55:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-07-09 13:55:47 +0000 |
commit | 4bbb8a19f6e3ab2f583f7a939a4f2cb3f6dc6293 (patch) | |
tree | 0eb134044326a98fcdcb41ac1df3760e5fcde60d | |
parent | bb5892ce5140e21284bf736a85f45584c5b08b24 (diff) |
Simplify this with list comprehensions
-rwxr-xr-x | configure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py index c8c19b4a5..eb011dac2 100755 --- a/configure.py +++ b/configure.py @@ -601,8 +601,8 @@ class ArchInfo(object): to shortest """ def all_submodels(self): - return sorted(list(zip(self.submodels, self.submodels)) + - list(self.submodel_aliases.items()), + return sorted([(k,k) for k in self.submodels] + + [k for k in self.submodel_aliases.items()], key = lambda k: len(k[0]), reverse = True) """ |