From: Hansraj Das Date: Wed, 24 Jul 2019 20:31:19 +0000 (+0530) Subject: Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e018dc52d1268bc0c5e4037c132e463f1a4002af;p=python Remove duplicate call to strip method in Parser/pgen/token.py (GH-14938) --- diff --git a/Parser/pgen/token.py b/Parser/pgen/token.py index 008e241e17..e7e8f3f1b6 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()