Skip to content
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 9d1a7c2 commit c33355d86aaf96faba44febb02395d8d12c9cd5b @jacobian jacobian committed Sep 10, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 django/utils/
3 django/utils/
@@ -117,8 +117,7 @@ def iterkeys(self):
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:

0 comments on commit c33355d

Please sign in to comment.
Something went wrong with that request. Please try again.