Skip to content

Commit

Permalink
Remove python 2 compatibility snippets and testing 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
loicdtx committed Jan 9, 2020
1 parent dbe4c5c commit 608fd59
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ cache: pip
dist: trusty

python:
- '2.7'
- '3.6'

before_install:
Expand Down
14 changes: 1 addition & 13 deletions lsru/__init__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
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

from .utils import url_retrieve, url_retrieve_and_unpack

__version__ = "0.5.2"

# FileNotFoundError does not exist in python2
try:
FileNotFoundError
except NameError:
FileNotFoundError = IOError


class Usgs(object):
"""Interface to the Usgs API
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 608fd59

Please sign in to comment.