summaryrefslogtreecommitdiff
path: root/django/utils/datastructures.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-09-10 22:49:05 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-09-10 22:49:05 +0000
commitc33355d86aaf96faba44febb02395d8d12c9cd5b (patch)
tree288a86b7e8ea8de0d44aec27631555ce9448c090 /django/utils/datastructures.py
parent9d1a7c203ce8f24aa1aa255ccdec3ace194012c6 (diff)
downloaddjango-c33355d86aaf96faba44febb02395d8d12c9cd5b.tar.gz
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
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r--django/utils/datastructures.py3
1 files changed, 1 insertions, 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: