Skip to content

Commit 7c9da5f

Browse files
committed
Remove redundant Python 2 code
1 parent 0252c04 commit 7c9da5f

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ exclude_lines =
107107
pragma: no cover
108108
# This excludes typing-specific code, which will be validated by mypy anyway.
109109
if TYPE_CHECKING
110-
# Can be set to exclude e.g. `if PY2:` on Python 3
111-
${PIP_CI_COVERAGE_EXCLUDES}
112110

113111
[metadata]
114112
license_file = LICENSE.txt

tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ pip = python {toxinidir}/tools/tox_pip.py
1111
mkdirp = python -c 'import os, sys; os.path.exists(sys.argv[1]) or os.mkdir(sys.argv[1])'
1212

1313
[testenv]
14-
# Remove USERNAME once we drop PY2.
1514
passenv =
1615
CI
1716
GIT_SSL_CAINFO
18-
USERNAME
1917
HTTP_PROXY
2018
HTTPS_PROXY
2119
NO_PROXY
@@ -43,8 +41,6 @@ setenv =
4341
# Ensure coverage is enabled in child processes in virtual environments
4442
# since they won't already have been enabled by pytest-cov.
4543
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
46-
# Used in coverage configuration in setup.cfg.
47-
PIP_CI_COVERAGE_EXCLUDES = if PY2
4844

4945
[testenv:docs]
5046
# Don't skip install here since pip_sphinxext uses pip's internals.

0 commit comments

Comments
 (0)