diff --git a/.travis.yml b/.travis.yml index fb19907..66918fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ group: travis_latest language: python cache: pip python: - - 2.7 - 3.7 install: - pip install flake8 -r requirements.txt diff --git a/lib/spark.py b/lib/spark.py index e7d2c5a..2a0ed62 100644 --- a/lib/spark.py +++ b/lib/spark.py @@ -42,8 +42,9 @@ import constants import translations import wttr_line -reload(sys) -sys.setdefaultencoding("utf-8") +if sys.version_info >= (3, 0): + reload(sys) + sys.setdefaultencoding("utf-8") # data processing {{{