Skip to content

Commit ab4f715

Browse files
kevin-bateslresende
authored andcommitted
Remove support for Python 2.7
1 parent 84e20f2 commit ab4f715

File tree

6 files changed

+5
-16
lines changed

6 files changed

+5
-16
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ matrix:
1414
env: TOXENV=py36
1515
- python: 3.5
1616
env: TOXENV=py35
17-
- python: 2.7
18-
env: TOXENV=py27
1917

2018

2119
install:

itests/integration_test_resource_manager.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44

55
from pprint import pprint
66
from unittest import TestCase
7+
from urllib.parse import urlparse
78
from yarn_api_client.resource_manager import ResourceManager
89

9-
try:
10-
from urlparse import urlparse
11-
except ImportError:
12-
from urllib.parse import urlparse
13-
1410

1511
class ResourceManagerTestCase(TestCase):
1612
"""

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bdist_wheel]
2-
universal=1
2+
universal=0
33

44
[metadata]
55
description-file=README.rst
@@ -21,4 +21,4 @@ ignore =
2121
E741,
2222
# Allow breaks after binary operators
2323
W504
24-
max-line-length = 120
24+
max-line-length = 120

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def find_version(*file_paths):
4949
'Intended Audience :: Developers',
5050
'License :: OSI Approved :: BSD License',
5151
'Operating System :: OS Independent',
52-
'Programming Language :: Python :: 2.7',
5352
'Programming Language :: Python :: 3.5',
5453
'Programming Language :: Python :: 3.6',
5554
'Programming Language :: Python :: 3.7',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,py35,py36,py37,py38
2+
envlist = py35,py36,py37,py38
33

44
[testenv]
55
deps =

yarn_api_client/base.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
import requests
77

88
from datetime import datetime
9+
from urllib.parse import urlparse, urlunparse
910

1011
from .errors import APIError, ConfigurationError
1112

12-
try:
13-
from urlparse import urlparse, urlunparse
14-
except ImportError:
15-
from urllib.parse import urlparse, urlunparse
16-
1713

1814
def get_logger(logger_name):
1915
logger = logging.getLogger(logger_name)

0 commit comments

Comments
 (0)