aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-07-09 13:55:47 +0000
committerlloyd <[email protected]>2010-07-09 13:55:47 +0000
commit4bbb8a19f6e3ab2f583f7a939a4f2cb3f6dc6293 (patch)
tree0eb134044326a98fcdcb41ac1df3760e5fcde60d
parentbb5892ce5140e21284bf736a85f45584c5b08b24 (diff)
Simplify this with list comprehensions
-rwxr-xr-xconfigure.py4
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)
"""