Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

tools: drop duplicate subprocess import in tv.py and an empty f-string in privacy.py

chandru1986-createa1d482334c4f
diff --git a/tools/privacy.py b/tools/privacy.py
index d9b4a0aa2..671d9d46f 100644
--- a/tools/privacy.py
+++ b/tools/privacy.py
@@ -422,7 +422,7 @@ def write_list(path, result, include_low):
"`dumpsys package <name>`.")
print(f"apply: TV_HOST={os.environ.get('TV_HOST', '<tv ip>')} tools/disable.sh {path}")
print(f"undo: TV_HOST={os.environ.get('TV_HOST', '<tv ip>')} tools/restore.sh {path}")
- print(f"read it first: the comments say what each one takes with it.")
+ print("read it first: the comments say what each one takes with it.")
def main():
diff --git a/tools/tv.py b/tools/tv.py
index 43a265625..f0b0a44a8 100755
--- a/tools/tv.py
+++ b/tools/tv.py
@@ -55,7 +55,6 @@ except ImportError as e:
_args = [_venv, "-I", os.path.abspath(__file__), *sys.argv[1:]]
if os.name == "nt":
# No exec on Windows: os.execv starts a second process, and the shell takes its prompt back.
- import subprocess
sys.exit(subprocess.call(_args))
os.execv(_venv, _args)
_make = (r"python -m venv tools\venv; tools\venv\Scripts\python.exe -m pip install -r tools\requirements.txt"