From 608fd59810283840749363ba31abbc997e90c453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dutrieux?= Date: Thu, 9 Jan 2020 11:00:32 +0100 Subject: [PATCH] Remove python 2 compatibility snippets and testing :tada: --- .travis.yml | 1 - lsru/__init__.py | 14 +------------- setup.py | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index c51ec37..2c02721 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ cache: pip dist: trusty python: -- '2.7' - '3.6' before_install: diff --git a/lsru/__init__.py b/lsru/__init__.py index 4942930..ded88df 100644 --- a/lsru/__init__.py +++ b/lsru/__init__.py @@ -1,14 +1,8 @@ -from __future__ import print_function - import os import json import datetime from pprint import pprint -# handle configparser python2, 3 compatibility -try: - from configparser import ConfigParser -except ImportError: - from ConfigParser import ConfigParser +from configparser import ConfigParser import requests @@ -16,12 +10,6 @@ __version__ = "0.5.2" -# FileNotFoundError does not exist in python2 -try: - FileNotFoundError -except NameError: - FileNotFoundError = IOError - class Usgs(object): """Interface to the Usgs API diff --git a/setup.py b/setup.py index dbf1e86..64da485 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,6 @@ url='https://github.com/loicdtx/landsat-espa-util', license='GPLv3', classifiers=[ - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5',