summaryrefslogtreecommitdiff
path: root/django/utils/datastructures.py
diff options
context:
space:
mode:
authorRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 19:53:29 -0400
committerRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 19:53:29 -0400
commite2ae8b048e7198428f696375b8bdcd89e90002d1 (patch)
tree5788bd3c2a074e5c5c9f354db2e6e7ef1cbce2ad /django/utils/datastructures.py
parent3bc0d46a840f17dce561daca8a6b8690b2cf5d0a (diff)
Correct flake8 E302 violations
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r--django/utils/datastructures.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py
index e5fe4a776a..49855dd33b 100644
--- a/django/utils/datastructures.py
+++ b/django/utils/datastructures.py
@@ -3,6 +3,7 @@ import warnings
from collections import OrderedDict
from django.utils import six
+
class MergeDict(object):
"""
A simple class for creating new "virtual" dictionaries that actually look
@@ -117,6 +118,7 @@ class MergeDict(object):
dictreprs = ', '.join(repr(d) for d in self.dicts)
return '%s(%s)' % (self.__class__.__name__, dictreprs)
+
class SortedDict(dict):
"""
A dictionary that keeps its keys in the order in which they're inserted.
@@ -239,6 +241,7 @@ class SortedDict(dict):
super(SortedDict, self).clear()
self.keyOrder = []
+
class OrderedSet(object):
"""
A set which keeps the ordering of the inserted items.
@@ -269,9 +272,11 @@ class OrderedSet(object):
def __nonzero__(self):
return bool(self.dict)
+
class MultiValueDictKeyError(KeyError):
pass
+
class MultiValueDict(dict):
"""
A subclass of dictionary customized to handle multiple values for the
@@ -504,6 +509,7 @@ class ImmutableList(tuple):
sort = complain
reverse = complain
+
class DictWrapper(dict):
"""
Wraps accesses to a dictionary so that certain values (those starting with