From 1b412a6e9ff8fba1c338d2e513c1a296c14ba73d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 11 Sep 2020 15:11:01 -0400 Subject: [PATCH] Use python rather than relying on shell-specific syntax. Tested on bash and xonsh on macOS. --- docs/developer-guide.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/developer-guide.rst b/docs/developer-guide.rst index 15aa3cd8f..9b40bb283 100644 --- a/docs/developer-guide.rst +++ b/docs/developer-guide.rst @@ -11,7 +11,7 @@ For example:: tahoe-lafs $ pre-commit install pre-commit installed at .git/hooks/pre-commit - tahoe-lafs $ echo "def foo():\n\t''" > src/allmydata/tabbed.py + tahoe-lafs $ python -c "import pathlib; pathlib.Path('src/allmydata/tabbed.py').write_text('def foo():\\n\\tpass\\n')" tahoe-lafs $ git add src/allmydata/tabbed.py tahoe-lafs $ git commit -a -m "Add a file that violates flake8" flake8...................................................................Failed