Skip to content

Commit

Permalink
Add fix from clips#308 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhlulu committed Mar 22, 2022
1 parent 05dd4e4 commit 9eea46b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pattern_text/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,10 @@ def _read(path, encoding="utf-8", comment=";;;"):
line = decode_utf8(line, encoding)
if not line or (comment and line.startswith(comment)):
continue
yield line
try:
yield line
except StopIteration:
return
raise StopIteration


Expand Down

0 comments on commit 9eea46b

Please sign in to comment.