From 383739aaddf8f03000a2ffeaebc5888e525c4fbd Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 29 Dec 2019 17:10:58 +0100 Subject: [PATCH] travis fixes --- .travis.yml | 1 - lib/spark.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {{{