diff --git a/Lib/collections.py b/Lib/collections.py index f2ae8ea5c1d..321daa394ec 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -45,10 +45,8 @@ def __init__(self, *args, **kwds): 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)