]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: another python 3 fixup
authorJason Ish <ish@unx.ca>
Thu, 11 Jan 2018 18:55:11 +0000 (12:55 -0600)
committerJason Ish <ish@unx.ca>
Thu, 11 Jan 2018 18:55:11 +0000 (12:55 -0600)
run.py

diff --git a/run.py b/run.py
index 950af2f89655bf158f305c589af743173eac7106..35a6d69a72959fa7afc02378f6353b7e1a316af6 100755 (executable)
--- 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):