blind review on list-operations added by 2to3:
[nepi.git] / src / nepi / data / processing / ccn / parser.py
index 582b8dd..ae2e18c 100644 (file)
@@ -281,7 +281,7 @@ def process_content_history(graph):
         fname = graph.node[nid]["history"]
         history = load_content_history(fname)
 
-        for content_name in list(history.keys()):
+        for content_name in history:
             hist = history[content_name]
 
             for (timestamp, message_type, nid1, nid2, nonce, size, line) in hist:
@@ -334,7 +334,7 @@ def process_content_history(graph):
 
     # Compute the time elapsed between the time an interest is sent
     # in the consumer node and when the content is received back
-    for content_name in list(content_names.keys()):
+    for content_name in content_names:
         # order content and interest messages by timestamp
         content_names[content_name]["content"] = sorted(
               content_names[content_name]["content"])