Commit 0b795e5b authored by Raymond Hettinger's avatar Raymond Hettinger

Minor code simplification.

parent 7ce6d976
......@@ -45,10 +45,8 @@ class OrderedDict(dict):
try:
self.__root
except AttributeError:
self.__root = root = [None, None, None] # sentinel node
PREV = 0
NEXT = 1
root[PREV] = root[NEXT] = root
self.__root = root = [] # sentinel node
root[:] = [root, root, None]
self.__map = {}
self.__update(*args, **kwds)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment