From a65d34e8ad7f37adc7d17e75b812351107fd3884 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Thu, 3 Dec 2020 16:45:22 +0300 Subject: [PATCH] Delete raise StopIteration in order to use pattern on Python 3.7 --- pattern/text/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pattern/text/__init__.py b/pattern/text/__init__.py index aa77af0b..b12691ce 100644 --- a/pattern/text/__init__.py +++ b/pattern/text/__init__.py @@ -606,7 +606,6 @@ def _read(path, encoding="utf-8", comment=";;;"): if not line or (comment and line.startswith(comment)): continue yield line - raise StopIteration class Lexicon(lazydict):