[Buildroot] [PATCH buildroot-test] scripts/autobuild-run: make it Python 3.x compatible
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Dec 4 12:20:48 UTC 2019
On Tue, 3 Dec 2019 17:54:57 +0100
Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
> With Python 3.7, the autobuild-run did not work due to the following
> issues:
>
> - The urlparse module no longer exists, it's not urllib.parse
>
> - 0022 is no longer recognized as an octal value, we must use 0o022,
> which also works in Python 2.x
>
> - reading the CSV file with the list of branches through the CSV
> parser failed due to the lack of decoding, as urlopen_closing()
> returns a stream of bytes and not strings. So we need to call
> decode_bytes() on each element of the CSV array. Since the CSV file
> is typically 3 or 4 lines long, we don't really need to optimize
> things.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> ---
> scripts/autobuild-run | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
Applied to buildroot-test, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list