Fix a Pylint warning
This commit is contained in:
@@ -128,7 +128,7 @@ class DockerContainer:
|
|||||||
cwd=from_path,
|
cwd=from_path,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
docker = subprocess.Popen(
|
with subprocess.Popen(
|
||||||
[
|
[
|
||||||
"docker",
|
"docker",
|
||||||
"exec",
|
"exec",
|
||||||
@@ -139,7 +139,7 @@ class DockerContainer:
|
|||||||
f"cat > {shell_quote(to_path)}",
|
f"cat > {shell_quote(to_path)}",
|
||||||
],
|
],
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
)
|
) as docker:
|
||||||
docker.stdin = cast(IO[bytes], docker.stdin)
|
docker.stdin = cast(IO[bytes], docker.stdin)
|
||||||
|
|
||||||
with open(from_path, "rb") as from_file:
|
with open(from_path, "rb") as from_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user