summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-07-26 06:47:57 +0000
committerLars Wirzenius <liw@liw.fi>2020-07-26 06:47:57 +0000
commit522dfaaf2d6cfc2977f0ec39cb787e4932d9c49a (patch)
tree98305e0b9537f75a7335b5ab0bb70724ca81d034
parentf06b0bccfdb7459be0947a6fd6f726eba4bcf92d (diff)
parent112f8a41808fbac01e8461f8d91ec63b1796daf4 (diff)
downloadewww-522dfaaf2d6cfc2977f0ec39cb787e4932d9c49a.tar.gz
Merge branch 'dropobs' into 'master'
drop: dead code from ewww.py See merge request larswirzenius/ewww!8
-rw-r--r--ewww.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/ewww.py b/ewww.py
index 8a6e453..9282d64 100644
--- a/ewww.py
+++ b/ewww.py
@@ -16,23 +16,6 @@ import urllib.parse
import yaml
-# Run a subprocess, capture its output and exit code in context.
-def _run(ctx, argv):
- p = subprocess.Popen(argv, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout, stderr = p.communicate("")
- ctx["argv"] = argv
- ctx["stdout"] = stdout.decode("utf-8")
- ctx["stderr"] = stderr.decode("utf-8")
- ctx["exit"] = p.returncode
-
-
-# Check that latest call of _run ended with an specific exit code.
-def _run_exit(ctx, expected):
- if ctx["exit"] != expected:
- print("ctx:", ctx.as_dict())
- assert_eq(ctx["exit"], expected)
-
-
# Name of Rust binary, debug-build.
def _binary(name):
return os.path.abspath(os.path.join(srcdir, "target", "debug", name))