mirror of
https://github.com/python/cpython.git
synced 2026-02-05 09:25:35 +00:00
Minor code simplification.
This commit is contained in:
parent
7ce6d9763c
commit
0b795e5b36
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue