Revert wrong usage of textwrap.dedent

This commit is contained in:
Ayaz Salikhov
2025-02-24 11:50:39 +00:00
parent 8f1b27da65
commit 9d4d382b36

View File

@@ -1,7 +1,5 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import textwrap
from docker.models.containers import Container
from tagging.utils.docker_runner import DockerRunner
@@ -16,11 +14,9 @@ def quoted_output(container: Container, cmd: str) -> str:
assert cmd_output, f"Command `{cmd}` returned empty output"
return textwrap.dedent(
f"""\
`{cmd}`:
return f"""\
`{cmd}`:
```text
{cmd_output}
```"""
)
```text
{cmd_output}
```"""