mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 14:02:58 +00:00
Revert wrong usage of textwrap.dedent
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
# Copyright (c) Jupyter Development Team.
|
# Copyright (c) Jupyter Development Team.
|
||||||
# Distributed under the terms of the Modified BSD License.
|
# Distributed under the terms of the Modified BSD License.
|
||||||
import textwrap
|
|
||||||
|
|
||||||
from docker.models.containers import Container
|
from docker.models.containers import Container
|
||||||
|
|
||||||
from tagging.utils.docker_runner import DockerRunner
|
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"
|
assert cmd_output, f"Command `{cmd}` returned empty output"
|
||||||
|
|
||||||
return textwrap.dedent(
|
return f"""\
|
||||||
f"""\
|
`{cmd}`:
|
||||||
`{cmd}`:
|
|
||||||
|
|
||||||
```text
|
```text
|
||||||
{cmd_output}
|
{cmd_output}
|
||||||
```"""
|
```"""
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user