Skip to content

Commit 01adbe3

Browse files
committed
replace StopIteration with return
close #243
1 parent 5b85d99 commit 01adbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pattern/text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def _read(path, encoding="utf-8", comment=";;;"):
606606
if not line or (comment and line.startswith(comment)):
607607
continue
608608
yield line
609-
raise StopIteration
609+
return
610610

611611

612612
class Lexicon(lazydict):

0 commit comments

Comments
 (0)