Permalink
Browse files

Fix an incredibly emberassing typo.

  • Loading branch information...
1 parent 8b3c2f2 commit 0f57935bcd8cd525d8d661c5af4fb70b79e126ae @alex alex committed Jul 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/utils/datastructures.py
@@ -1,5 +1,5 @@
import copy
-import warning
+import warnings
from types import GeneratorType
@@ -196,13 +196,13 @@ def value_for_index(self, index):
# 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)

1 comment on commit 0f57935

Owner

jezdez commented on 0f57935 Jul 15, 2012

Really, @alex? Sigh.

Please sign in to comment.