mirror of https://github.com/django/django.git
Fix an incredibly emberassing typo.
This commit is contained in:
parent
8b3c2f2c51
commit
0f57935bcd
|
@ -1,5 +1,5 @@
|
||||||
import copy
|
import copy
|
||||||
import warning
|
import warnings
|
||||||
from types import GeneratorType
|
from types import GeneratorType
|
||||||
|
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ class SortedDict(dict):
|
||||||
# This, and insert() are deprecated because they cannot be implemented
|
# This, and insert() are deprecated because they cannot be implemented
|
||||||
# using collections.OrderedDict (Python 2.7 and up), which we'll
|
# using collections.OrderedDict (Python 2.7 and up), which we'll
|
||||||
# eventually switch to
|
# eventually switch to
|
||||||
warning.warn(PendingDeprecationWarning,
|
warnings.warn(PendingDeprecationWarning,
|
||||||
"SortedDict.value_for_index is deprecated", stacklevel=2)
|
"SortedDict.value_for_index is deprecated", stacklevel=2)
|
||||||
return self[self.keyOrder[index]]
|
return self[self.keyOrder[index]]
|
||||||
|
|
||||||
def insert(self, index, key, value):
|
def insert(self, index, key, value):
|
||||||
"""Inserts the key, value pair before the item with the given index."""
|
"""Inserts the key, value pair before the item with the given index."""
|
||||||
warning.warn(PendingDeprecationWarning,
|
warnings.warn(PendingDeprecationWarning,
|
||||||
"SortedDict.insert is deprecated", stacklevel=2)
|
"SortedDict.insert is deprecated", stacklevel=2)
|
||||||
if key in self.keyOrder:
|
if key in self.keyOrder:
|
||||||
n = self.keyOrder.index(key)
|
n = self.keyOrder.index(key)
|
||||||
|
|
Loading…
Reference in New Issue