Minor code simplification.
This commit is contained in:
parent
7ce6d9763c
commit
0b795e5b36
|
@ -45,10 +45,8 @@ class OrderedDict(dict):
|
||||||
try:
|
try:
|
||||||
self.__root
|
self.__root
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
self.__root = root = [None, None, None] # sentinel node
|
self.__root = root = [] # sentinel node
|
||||||
PREV = 0
|
root[:] = [root, root, None]
|
||||||
NEXT = 1
|
|
||||||
root[PREV] = root[NEXT] = root
|
|
||||||
self.__map = {}
|
self.__map = {}
|
||||||
self.__update(*args, **kwds)
|
self.__update(*args, **kwds)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue