Skip to content

Commit 9d4d382

Browse files
committed
Revert wrong usage of textwrap.dedent
1 parent 8f1b27d commit 9d4d382

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tagging/utils/quoted_output.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Copyright (c) Jupyter Development Team.
22
# Distributed under the terms of the Modified BSD License.
3-
import textwrap
4-
53
from docker.models.containers import Container
64

75
from tagging.utils.docker_runner import DockerRunner
@@ -16,11 +14,9 @@ def quoted_output(container: Container, cmd: str) -> str:
1614

1715
assert cmd_output, f"Command `{cmd}` returned empty output"
1816

19-
return textwrap.dedent(
20-
f"""\
21-
`{cmd}`:
17+
return f"""\
18+
`{cmd}`:
2219
23-
```text
24-
{cmd_output}
25-
```"""
26-
)
20+
```text
21+
{cmd_output}
22+
```"""

0 commit comments

Comments
 (0)