Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Back SortedSet onto OrderedDict, rename it, and a few typo fixes

  • Loading branch information...
commit 3c3d308ea3e017868b6530df144dd1824471b6f2 1 parent f093646
@andrewgodwin andrewgodwin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/utils/
5 django/utils/
@@ -1,5 +1,6 @@
import copy
import warnings
+from collections import OrderedDict
from django.utils import six
class MergeDict(object):
@@ -239,11 +240,11 @@ def clear(self):
class SortedSet(object):
A set which keeps the ordering of the inserted items.
- Currently backs onto SortedDict.
+ Currently backs onto OrderedDict.
def __init__(self, iterable=None):
- self.dict = SortedDict(((x, None) for x in iterable) if iterable else [])
+ self.dict = OrderedDict(((x, None) for x in iterable) if iterable else [])
def add(self, item):
self.dict[item] = None
Please sign in to comment.
Something went wrong with that request. Please try again.