mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-14 13:32:56 +00:00
Revert wrong usage of textwrap.dedent
This commit is contained in:
@@ -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}
|
||||
```"""
|
||||
|
Reference in New Issue
Block a user