From 423087150373044bdffb19e55300171fa35cc984 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 4 Oct 2017 13:53:06 -0700 Subject: [PATCH] docs: Update code style guide for Python. --- docs/code-style.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/code-style.md b/docs/code-style.md index 75c0c837b4..aa906dce44 100644 --- a/docs/code-style.md +++ b/docs/code-style.md @@ -352,9 +352,9 @@ styles (separate lines for each selector): ### Python -- Scripts should start with `#!/usr/bin/env python` and not +- Scripts should start with `#!/usr/bin/env python3` and not `#/usr/bin/python` (the right Python may not be installed in - `/usr/bin`) or `#/usr/bin/env python2.7` (bad for Python 3 + `/usr/bin`) or `#/usr/bin/env python` (we require Python 3 compatibility). Don't put a shebang line on a Python file unless it's meaningful to run it as a script. (Some libraries can also be run as scripts, e.g. to run a test suite.)