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 008e241..e7e8f3f 100644
--- a/Parser/pgen/token.py
+++ b/Parser/pgen/token.py
@@ -6,9 +6,7 @@
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 @@
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()