diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2012-07-14 17:08:52 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2012-07-14 17:08:52 -0700 |
commit | 0f57935bcd8cd525d8d661c5af4fb70b79e126ae (patch) | |
tree | e6339f5cb80f0c721f3b72cc5412c161a6f445ee /django/utils/datastructures.py | |
parent | 8b3c2f2c51183bde47bd1e98057b77866f35dd6e (diff) | |
download | django-0f57935bcd8cd525d8d661c5af4fb70b79e126ae.tar.gz |
Fix an incredibly emberassing typo.
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r-- | django/utils/datastructures.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 832b16c3d4..69be07ba7e 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -1,5 +1,5 @@ import copy -import warning +import warnings from types import GeneratorType @@ -196,13 +196,13 @@ class SortedDict(dict): # This, and insert() are deprecated because they cannot be implemented # using collections.OrderedDict (Python 2.7 and up), which we'll # eventually switch to - warning.warn(PendingDeprecationWarning, + warnings.warn(PendingDeprecationWarning, "SortedDict.value_for_index is deprecated", stacklevel=2) return self[self.keyOrder[index]] def insert(self, index, key, value): """Inserts the key, value pair before the item with the given index.""" - warning.warn(PendingDeprecationWarning, + warnings.warn(PendingDeprecationWarning, "SortedDict.insert is deprecated", stacklevel=2) if key in self.keyOrder: n = self.keyOrder.index(key) |