From 4d5c619b8eb7aa530a87304cc26734f42e2d2b0d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 2 Aug 2021 12:36:38 -0400 Subject: scripts: Update graphing scripts to work with either python2 or python3 Signed-off-by: Kevin O'Connor --- scripts/graphstats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/graphstats.py') diff --git a/scripts/graphstats.py b/scripts/graphstats.py index d9915036..b00477f9 100755 --- a/scripts/graphstats.py +++ b/scripts/graphstats.py @@ -1,7 +1,7 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # Script to parse a logging file, extract the stats, and graph them # -# Copyright (C) 2016-2019 Kevin O'Connor +# Copyright (C) 2016-2021 Kevin O'Connor # # This file may be distributed under the terms of the GNU GPLv3 license. import optparse, datetime @@ -23,7 +23,7 @@ def parse_log(logname, mcu): mcu = "mcu" mcu_prefix = mcu + ":" apply_prefix = { p: 1 for p in APPLY_PREFIX } - f = open(logname, 'rb') + f = open(logname, 'r') out = [] for line in f: parts = line.split() -- cgit v1.2.3-70-g09d2