diff --git a/.travis.yml b/.travis.yml index c6a4d3f7..f87cfe4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,12 @@ dist: precise python: - "3.6" +matrix: + include: + - python: 3.7 + dist: xenial + sudo: true + before_install: - export TZ=Europe/Brussels - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi 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):