Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938)

This commit is contained in:
Hansraj Das 2019-07-25 02:01:19 +05:30 committed by Pablo Galindo
parent 5380def826
commit e018dc52d1
1 changed files with 2 additions and 6 deletions

View File

@ -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()