From c33355d86aaf96faba44febb02395d8d12c9cd5b Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 10 Sep 2009 22:49:05 +0000 Subject: [PATCH] As long as we're micro-optomizing, do it right -- using map() shaves another dozen or so seconds off the test suite run time. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11495 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/datastructures.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 4d9c61ffba..85cdd443f8 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -117,8 +117,7 @@ class SortedDict(dict): return iter(self.keyOrder) def values(self): - super_get = super(SortedDict, self).__getitem__ - return [super_get(k) for k in self.keyOrder] + return map(super(SortedDict, self).__getitem__, self.keyOrder) def itervalues(self): for key in self.keyOrder: