2to3 for jsonlog and splunk

This commit is contained in:
Michel Oosterhof
2015-11-17 04:54:30 +00:00
parent 52d65b0ade
commit 0a2c83d556
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ class Output(cowrie.core.output.Output):
self.outfile.close()
def write(self, logentry):
for i in logentry.keys():
for i in list(logentry.keys()):
# remove twisted 15 legacy keys
if i.startswith('log_'):
del logentry[i]

View File

@@ -36,7 +36,7 @@ class Output(cowrie.core.output.Output):
pass
def write(self, logentry):
for i in logentry.keys():
for i in list(logentry.keys()):
# remove twisted 15 legacy keys
if i.startswith('log_'):
del logentry[i]