Skip to content

Commit 8e336b8

Browse files
authored
docs: join clean args with shlex (#4631)
Before: ``` curl http://127.0.0.1:8000/api/ -H Content-Type: application/json ``` After: ``` curl http://127.0.0.1:8000/api/ -H 'Content-Type: application/json ``` Refs wemake-services/django-modern-rest#668
1 parent b9d2174 commit 8e336b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/sphinx_ext/run_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def exec_examples(app_file: Path, run_configs: list[list[str]]) -> str:
143143
logger.error(f"Example: {app_file}:{args} yielded no results")
144144
continue
145145

146-
result = "\n".join(("> " + (" ".join(clean_args)), *stdout))
146+
result = "\n".join(("> " + (shlex.join(clean_args)), *stdout))
147147
results.append(result)
148148

149149
return "\n".join(results)

0 commit comments

Comments
 (0)