From e018dc52d1268bc0c5e4037c132e463f1a4002af Mon Sep 17 00:00:00 2001 From: Hansraj Das Date: Thu, 25 Jul 2019 02:01:19 +0530 Subject: Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938) --- Parser/pgen/token.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Parser/pgen/token.py b/Parser/pgen/token.py index 008e241..e7e8f3f 100644 --- 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() -- cgit v0.12