0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

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
This commit is contained in:
Jacob Kaplan-Moss 2009-09-10 22:49:05 +00:00
parent 9d1a7c203c
commit c33355d86a

View File

@ -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: