Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Parser/pgen/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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()
Expand Down