Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
0b795e5b
Commit
0b795e5b
authored
13 years ago
by
Raymond Hettinger
Browse files
Options
Download
Email Patches
Plain Diff
Minor code simplification.
parent
7ce6d976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Lib/collections.py
Lib/collections.py
+2
-4
No files found.
Lib/collections.py
View file @
0b795e5b
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment