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
e018dc52
Commit
e018dc52
authored
5 years ago
by
Hansraj Das
Committed by
Pablo Galindo
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938)
parent
5380def8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Parser/pgen/token.py
Parser/pgen/token.py
+2
-6
No files found.
Parser/pgen/token.py
View file @
e018dc52
...
...
@@ -6,9 +6,7 @@ def generate_tokens(tokens):
for
line
in
tokens
:
line
=
line
.
strip
()
if
not
line
:
continue
if
line
.
strip
().
startswith
(
'#'
):
if
not
line
or
line
.
startswith
(
'#'
):
continue
name
=
line
.
split
()[
0
]
...
...
@@ -22,9 +20,7 @@ def generate_opmap(tokens):
for
line
in
tokens
:
line
=
line
.
strip
()
if
not
line
:
continue
if
line
.
strip
().
startswith
(
'#'
):
if
not
line
or
line
.
startswith
(
'#'
):
continue
pieces
=
line
.
split
()
...
...
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