mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🎨 Refactor subprocess usage for improved readability
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Apkeep Downloader Class."""
|
||||
|
||||
import subprocess
|
||||
from subprocess import PIPE, Popen
|
||||
from time import perf_counter
|
||||
from typing import Any, Self
|
||||
|
||||
@@ -45,7 +45,7 @@ class Apkeep(Downloader):
|
||||
logger.debug(f"Running command: {cmd}")
|
||||
|
||||
start = perf_counter()
|
||||
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
|
||||
process = Popen(cmd, stdout=PIPE)
|
||||
output = process.stdout
|
||||
if not output:
|
||||
msg = "Failed to send request for patching."
|
||||
|
||||
Reference in New Issue
Block a user