diff options
author | Piet Delport <pjdelport@gmail.com> | 2016-01-04 16:09:18 +0200 |
---|---|---|
committer | Piet Delport <pjdelport@gmail.com> | 2016-01-04 16:09:18 +0200 |
commit | b5ded7a6bc0e7407c08813faa95b66a624d60f52 (patch) | |
tree | ab9db4a953c1bfd7770488765fba9d117e1e40d2 | |
parent | b9e5e7fe4f721a1705b02fc16e891a451ac298a2 (diff) | |
download | tox-b5ded7a6bc0e7407c08813faa95b66a624d60f52.tar.gz |
Remove separating spaces in "print (...)" (pep8 E211)fix-flakes
-rwxr-xr-x | doc/_getdoctarget.py | 2 | ||||
-rw-r--r-- | tests/test_interpreters.py | 2 | ||||
-rw-r--r-- | tox/_pytestplugin.py | 6 | ||||
-rw-r--r-- | tox/interpreters.py | 6 | ||||
-rw-r--r-- | tox/result.py | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/doc/_getdoctarget.py b/doc/_getdoctarget.py index 1199221..f92e87b 100755 --- a/doc/_getdoctarget.py +++ b/doc/_getdoctarget.py @@ -13,4 +13,4 @@ def get_minor_version_string(): return ".".join(get_version_string().split(".")[:2]) if __name__ == "__main__": - print (get_minor_version_string()) + print(get_minor_version_string()) diff --git a/tests/test_interpreters.py b/tests/test_interpreters.py index d2cfa27..c658380 100644 --- a/tests/test_interpreters.py +++ b/tests/test_interpreters.py @@ -41,7 +41,7 @@ def test_tox_get_python_executable(): if sys.platform == "win32": pydir = "python%s" % ver.replace(".", "") x = py.path.local("c:\%s" % pydir) - print (x) + print(x) if not x.check(): continue else: diff --git a/tox/_pytestplugin.py b/tox/_pytestplugin.py index f15d2ec..b7693fc 100644 --- a/tox/_pytestplugin.py +++ b/tox/_pytestplugin.py @@ -68,12 +68,12 @@ class ReportExpectMock: def generic_report(*args, **kwargs): self._calls.append((name,) + args) - print ("%s" % (self._calls[-1], )) + print("%s" % (self._calls[-1], )) return generic_report def action(self, venv, msg, *args): self._calls.append(("action", venv, msg)) - print ("%s" % (self._calls[-1], )) + print("%s" % (self._calls[-1], )) return Action(self.session, venv, msg, args) def getnext(self, cat): @@ -316,7 +316,7 @@ def initproj(request, tmpdir): for p in base.visit(lambda x: x.check(file=1)): manifestlines.append("include %s" % p.relto(base)) create_files(base, {"MANIFEST.in": "\n".join(manifestlines)}) - print ("created project in %s" % (base,)) + print("created project in %s" % (base,)) base.chdir() return initproj diff --git a/tox/interpreters.py b/tox/interpreters.py index 66e6409..e049f1d 100644 --- a/tox/interpreters.py +++ b/tox/interpreters.py @@ -43,10 +43,10 @@ class Interpreters: try: res = exec_on_interpreter(info.executable, [inspect.getsource(sitepackagesdir), - "print (sitepackagesdir(%r))" % envdir]) + "print(sitepackagesdir(%r))" % envdir]) except ExecFailed: val = sys.exc_info()[1] - print ("execution failed: %s -- %s" % (val.out, val.err)) + print("execution failed: %s -- %s" % (val.out, val.err)) return "" else: return res["dir"] @@ -56,7 +56,7 @@ def run_and_get_interpreter_info(name, executable): assert executable try: result = exec_on_interpreter(executable, - [inspect.getsource(pyinfo), "print (pyinfo())"]) + [inspect.getsource(pyinfo), "print(pyinfo())"]) except ExecFailed: val = sys.exc_info()[1] return NoInterpreterInfo(name, executable=val.executable, diff --git a/tox/result.py b/tox/result.py index 96ac612..bad8cc3 100644 --- a/tox/result.py +++ b/tox/result.py @@ -47,9 +47,9 @@ class EnvLog: pythonexecutable = py.path.local(pythonexecutable) out = pythonexecutable.sysexec("-c", "import sys; " - "print (sys.executable);" - "print (list(sys.version_info)); " - "print (sys.version)") + "print(sys.executable);" + "print(list(sys.version_info)); " + "print(sys.version)") lines = out.splitlines() executable = lines.pop(0) version_info = eval(lines.pop(0)) |