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":
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):