From: Stefan Lengfeld <contact@stefanchrist.eu>
To: barebox@lists.infradead.org
Subject: [PATCH] docs: add python version in shebang
Date: Sun, 15 Sep 2019 21:31:14 +0200 [thread overview]
Message-ID: <20190915193114.3243-1-contact@stefanchrist.eu> (raw)
On my machine 'make docs' fails with
Traceback (most recent call last):
File "/home/stc/git/barebox/Documentation/gen_commands.py", line 156, in <module>
parse_c(source)
File "/home/stc/git/barebox/Documentation/gen_commands.py", line 34, in parse_c
for line in file(name, 'r'):
NameError: name 'file' is not defined
because /usr/bin/python points to python3 instead of python2. Fix this
by including the language version in the shebang of the script.
Signed-off-by: Stefan Lengfeld <contact@stefanchrist.eu>
---
Documentation/gen_commands.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/gen_commands.py b/Documentation/gen_commands.py
index 6251b4f22..b46165882 100755
--- a/Documentation/gen_commands.py
+++ b/Documentation/gen_commands.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
import errno
import os
--
2.21.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2019-09-15 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-15 19:31 Stefan Lengfeld [this message]
2019-09-17 8:01 ` Uwe Kleine-König
2019-09-17 8:02 ` [PATCH 1/2] Convert latin1 files to utf-8 Uwe Kleine-König
2019-09-17 10:47 ` Sascha Hauer
2019-09-17 8:09 ` [PATCH 2/2] Documentation: make gen_commands helper python3 compatible Uwe Kleine-König
2019-09-17 8:33 ` Uwe Kleine-König
2019-09-18 19:25 ` [PATCH] docs: add python version in shebang Stefan Lengfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190915193114.3243-1-contact@stefanchrist.eu \
--to=contact@stefanchrist.eu \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox