diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-01-08 09:06:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 09:06:26 -0800 |
commit | fee92ee7b728ccd48cdd8426ce75e8268d78e2c0 (patch) | |
tree | 21e613ee9262fbd3552b4ad4a8dc1877ae770572 /src | |
parent | 9e4868d12c1b472d4b35d3e5a5a2b08eae919e89 (diff) | |
download | tox-git-fee92ee7b728ccd48cdd8426ce75e8268d78e2c0.tar.gz |
Clean up dead code (#1125)
Using https://github.com/asottile/dead
Diffstat (limited to 'src')
-rw-r--r-- | src/tox/_quickstart.py | 10 | ||||
-rw-r--r-- | src/tox/constants.py | 1 | ||||
-rw-r--r-- | src/tox/exception.py | 4 | ||||
-rw-r--r-- | src/tox/interpreters.py | 4 | ||||
-rw-r--r-- | src/tox/session.py | 12 | ||||
-rwxr-xr-x | src/tox/venv.py | 9 |
6 files changed, 0 insertions, 40 deletions
diff --git a/src/tox/_quickstart.py b/src/tox/_quickstart.py index a4d641b0..74f082c6 100644 --- a/src/tox/_quickstart.py +++ b/src/tox/_quickstart.py @@ -92,16 +92,6 @@ def boolean(x): return x.upper() in ("Y", "YES") -def suffix(x): - if not (x[0:1] == "." and len(x) > 1): - raise ValidationError("Please enter a file suffix, e.g. '.rst' or '.txt'.") - return x - - -def ok(x): - return x - - def list_modificator(answer, existing=None): if not existing: existing = [] diff --git a/src/tox/constants.py b/src/tox/constants.py index bd215625..ecf0c97d 100644 --- a/src/tox/constants.py +++ b/src/tox/constants.py @@ -27,7 +27,6 @@ def _construct_default_factors(cpython_versions, pypy_versions, other_interprete class PYTHON: PY_FACTORS_RE = re.compile("^(?!py$)(py|pypy|jython)([2-9][0-9]?)?$") - PY_FACTORS_MAP = {"py": "python", "pypy": "pypy", "jython": "jython"} CPYTHON_VERSION_TUPLES = [(2, 7), (3, 4), (3, 5), (3, 6), (3, 7), (3, 8)] PYPY_VERSION_TUPLES = [(2, 7), (3, 5)] OTHER_PYTHON_INTERPRETERS = ["jython"] diff --git a/src/tox/exception.py b/src/tox/exception.py index 4ad07e46..ace6a31d 100644 --- a/src/tox/exception.py +++ b/src/tox/exception.py @@ -68,10 +68,6 @@ class InvocationError(Error): return exit_code_str(self.__class__.__name__, self.command, self.exit_code) -class MissingFile(Error): - """An error while invoking a script.""" - - class MissingDirectory(Error): """A directory did not exist.""" diff --git a/src/tox/interpreters.py b/src/tox/interpreters.py index 00647089..503b5065 100644 --- a/src/tox/interpreters.py +++ b/src/tox/interpreters.py @@ -101,8 +101,6 @@ class ExecFailed(Exception): class InterpreterInfo: - runnable = True - def __init__(self, name, executable, version_info, sysplatform): assert executable and version_info self.name = name @@ -115,8 +113,6 @@ class InterpreterInfo: class NoInterpreterInfo: - runnable = False - def __init__(self, name, executable=None, out=None, err="not found"): self.name = name self.executable = executable diff --git a/src/tox/session.py b/src/tox/session.py index 47a50a8f..fe54ee43 100644 --- a/src/tox/session.py +++ b/src/tox/session.py @@ -288,8 +288,6 @@ class Verbosity(object): class Reporter(object): - actionchar = "-" - def __init__(self, session): self.tw = py.io.TerminalWriter() self.session = session @@ -472,16 +470,6 @@ class Session: tox_env.package.remove() py.path.local(tox_env.package.dirname).remove(ignore_errors=True) - def _copyfiles(self, srcdir, pathlist, destdir): - for relpath in pathlist: - src = srcdir.join(relpath) - if not src.check(): - self.report.error("missing source file: {}".format(src)) - raise SystemExit(1) - target = destdir.join(relpath) - target.dirpath().ensure(dir=1) - src.copy(target) - def make_emptydir(self, path): if path.check(): self.report.info(" removing {}".format(path)) diff --git a/src/tox/venv.py b/src/tox/venv.py index f250bf6f..d3e9954c 100755 --- a/src/tox/venv.py +++ b/src/tox/venv.py @@ -4,7 +4,6 @@ import os import pipes import re import sys -import warnings from itertools import chain import py @@ -244,14 +243,6 @@ class VirtualEnv(object): alwayscopy, ) - def _getresolvedeps(self): - warnings.warn( - "that's a private function there, use get_resolved_dependencies," - "this will be removed in 3.2", - category=DeprecationWarning, - ) - return self.get_resolved_dependencies() - def get_resolved_dependencies(self): dependencies = [] for dependency in self.envconfig.deps: |