Skip to content

Commit

Permalink
Skip empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
iv-ivan committed Sep 18, 2019
1 parent 0a3d22e commit 3c56f3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions update_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def load_signed():
with open(filename) as inp:
for i, line in enumerate(inp):
line = line.strip()
if not line:
continue
m = re.match(pattern1, line) or re.match(pattern2, line)
if not m and line:
print('File "%s", line %d: line does not follow the format:\n\t"%s"'
Expand Down

0 comments on commit 3c56f3f

Please sign in to comment.