From: Armin Kuster Date: Sat, 4 May 2019 01:44:43 +0000 (-0700) Subject: parsing: fix startswith for python3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e96613c29126ba261c06a391c8d71b919de48812;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git parsing: fix startswith for python3 Signed-off-by: Armin Kuster --- diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py index 97d28724a4e..3c2d52787f4 100644 --- a/scripts/pybootchartgui/pybootchartgui/parsing.py +++ b/scripts/pybootchartgui/pybootchartgui/parsing.py @@ -732,9 +732,9 @@ def _parse_bitbake_buildstats(writer, state, filename, file): start = None end = None for line in file: - if line.startswith("Started:"): + if line.startswith(b"Started:"): start = int(float(line.split()[-1])) - elif line.startswith("Ended:"): + elif line.startswith(b"Ended:"): end = int(float(line.split()[-1])) if start and end: state.add_process(pn + ":" + task, start, end)