projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5380def
)
Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938)
author
Hansraj Das
<raj.das.136@gmail.com>
Wed, 24 Jul 2019 20:31:19 +0000
(
02:01
+0530)
committer
Pablo Galindo
<Pablogsal@gmail.com>
Wed, 24 Jul 2019 20:31:19 +0000
(21:31 +0100)
Parser/pgen/token.py
patch
|
blob
|
history
diff --git
a/Parser/pgen/token.py
b/Parser/pgen/token.py
index 008e241e175e7f9da94899dcf9b4994db85c8c53..e7e8f3f1b661e34e32e7ae24744d1cd7002072be 100644
(file)
--- a/
Parser/pgen/token.py
+++ b/
Parser/pgen/token.py
@@
-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()