diff options
author | Simon Charette <charette.s@gmail.com> | 2013-08-29 19:20:00 -0400 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2013-08-30 10:57:51 -0400 |
commit | 11cd7388f77aa9d12ab6b57285c3801b237e241b (patch) | |
tree | e4853e5c87e1de082660e10b2144b91b4d9b7d0c /django/utils/datastructures.py | |
parent | e4a67fd90626ced92a61f38ef682d2aa4f34a3ff (diff) | |
download | django-11cd7388f77aa9d12ab6b57285c3801b237e241b.tar.gz |
Fixed #20989 -- Removed useless explicit list comprehensions.
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r-- | django/utils/datastructures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 29228bd3a5..f4f694f399 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -231,7 +231,7 @@ class SortedDict(dict): Replaces the normal dict.__repr__ with a version that returns the keys in their sorted order. """ - return '{%s}' % ', '.join(['%r: %r' % (k, v) for k, v in six.iteritems(self)]) + return '{%s}' % ', '.join('%r: %r' % (k, v) for k, v in six.iteritems(self)) def clear(self): super(SortedDict, self).clear() |