From 52d65b0ade20a1bc4052112207a5e5005884df71 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Tue, 17 Nov 2015 04:53:36 +0000 Subject: [PATCH] 2to3 updates --- cowrie/output/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cowrie/output/elasticsearch.py b/cowrie/output/elasticsearch.py index 60a8f44..ec5c81b 100644 --- a/cowrie/output/elasticsearch.py +++ b/cowrie/output/elasticsearch.py @@ -26,7 +26,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]