From: Jason Ish Date: Thu, 11 Jan 2018 18:55:11 +0000 (-0600) Subject: runner: another python 3 fixup X-Git-Tag: suricata-6.0.4~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c4fc357dbd68b65e4904a0d2567207bf5d1ee0;p=thirdparty%2Fsuricata-verify.git runner: another python 3 fixup --- diff --git a/run.py b/run.py index 950af2f89..35a6d69a7 100755 --- a/run.py +++ b/run.py @@ -194,7 +194,7 @@ class StatsCheck: def run(self): stats = None - with open(os.path.join("output", "eve.json"), "rb") as fileobj: + with open(os.path.join("output", "eve.json"), "r") as fileobj: for line in fileobj: event = json.loads(line) if event["event_type"] == "stats": @@ -213,7 +213,7 @@ class FilterCheck: def run(self): count = 0 - with open(os.path.join("output", "eve.json"), "rb") as fileobj: + with open(os.path.join("output", "eve.json"), "r") as fileobj: for line in fileobj: event = json.loads(line) if self.match(event):