From 4bbb8a19f6e3ab2f583f7a939a4f2cb3f6dc6293 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 9 Jul 2010 13:55:47 +0000 Subject: Simplify this with list comprehensions --- configure.py | 4 ++-- 1 file 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) """ -- cgit v1.2.3