Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
97191618
Commit
97191618
authored
Sep 08, 2016
by
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation (reindent.py).
parent
dd1c638b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/lib2to3/pgen2/grammar.py
Lib/lib2to3/pgen2/grammar.py
+4
-4
No files found.
Lib/lib2to3/pgen2/grammar.py
View file @
97191618
...
...
@@ -139,12 +139,12 @@ class Grammar(object):
def
_make_deterministic
(
top
):
if
isinstance
(
top
,
dict
):
return
collections
.
OrderedDict
(
sorted
(((
k
,
_make_deterministic
(
v
))
for
k
,
v
in
top
.
items
())))
return
collections
.
OrderedDict
(
sorted
(((
k
,
_make_deterministic
(
v
))
for
k
,
v
in
top
.
items
())))
if
isinstance
(
top
,
list
):
return
[
_make_deterministic
(
e
)
for
e
in
top
]
return
[
_make_deterministic
(
e
)
for
e
in
top
]
if
isinstance
(
top
,
tuple
):
return
tuple
(
_make_deterministic
(
e
)
for
e
in
top
)
return
tuple
(
_make_deterministic
(
e
)
for
e
in
top
)
return
top
...
...
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