From 01adbe37f6ed3130fe0c8eb020f1907a92acdcc3 Mon Sep 17 00:00:00 2001 From: Fabian Howard Date: Wed, 21 Nov 2018 12:34:54 +0000 Subject: [PATCH 1/3] replace StopIteration with return close https://github.com/clips/pattern/issues/243 --- pattern/text/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pattern/text/__init__.py b/pattern/text/__init__.py index aa77af0b..5e4c1108 100644 --- a/pattern/text/__init__.py +++ b/pattern/text/__init__.py @@ -606,7 +606,7 @@ def _read(path, encoding="utf-8", comment=";;;"): if not line or (comment and line.startswith(comment)): continue yield line - raise StopIteration + return class Lexicon(lazydict): From 77c86873c3b0035166874af4737ed53910af2c5d Mon Sep 17 00:00:00 2001 From: Fabian Howard Date: Tue, 27 Nov 2018 16:17:14 +0000 Subject: [PATCH 2/3] run tests against 3.7 as well --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index c6a4d3f7..b42ba806 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ dist: precise python: - "3.6" + - "3.7" before_install: - export TZ=Europe/Brussels From c43542b9092e91bb40f6613964130f7d2e1cf0c3 Mon Sep 17 00:00:00 2001 From: Fabian Howard Date: Tue, 27 Nov 2018 16:22:12 +0000 Subject: [PATCH 3/3] bump dist to one supporting python 3.7 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b42ba806..f87cfe4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,12 @@ dist: precise python: - "3.6" - - "3.7" + +matrix: + include: + - python: 3.7 + dist: xenial + sudo: true before_install: - export TZ=Europe/Brussels