Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 7173522

Browse files
committed
Remove redundant code
1 parent cf4d43c commit 7173522

File tree

5 files changed

+5
-17
lines changed

5 files changed

+5
-17
lines changed

codecov/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@
2222
import subprocess
2323

2424
# https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
25-
try:
26-
import logging
27-
logging.captureWarnings(True)
28-
except:
29-
# not py2.6 compatible
30-
pass
25+
import logging
26+
logging.captureWarnings(True)
3127

3228

3329
version = VERSION = __version__ = '2.0.15'

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
from setuptools import setup
3-
import sys
43

54
version = '2.0.15'
65
classifiers = ["Development Status :: 5 - Production/Stable",
@@ -18,11 +17,6 @@
1817
"License :: OSI Approved :: Apache Software License",
1918
"Topic :: Software Development :: Testing"]
2019

21-
if sys.version_info >= (2, 7):
22-
install_requires = ["requests>=2.7.9", "coverage"]
23-
else:
24-
install_requires = ["requests>=2.7.9", "coverage", "argparse"]
25-
2620
setup(name='codecov',
2721
version=version,
2822
description="Hosted coverage reports for Github, Bitbucket and Gitlab",
@@ -36,8 +30,7 @@
3630
packages=['codecov'],
3731
include_package_data=True,
3832
zip_safe=True,
39-
install_requires=install_requires,
40-
tests_require=["unittest2"],
33+
install_requires=["requests>=2.7.9", "coverage"],
4134
entry_points={'console_scripts': ['codecov=codecov:main']},
4235
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
4336
)

tests/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ pytest>=3.6.0
55
pytest-cov
66
funcsigs
77
requests
8-
unittest2

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import itertools
55
from ddt import ddt, data
66
from mock import patch, Mock
7-
import unittest2 as unittest
7+
import unittest
88

99
import subprocess
1010

tox.ini

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

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)