X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fnepi%2Fdata%2Fprocessing%2Fccn%2Fparser.py;fp=src%2Fnepi%2Fdata%2Fprocessing%2Fccn%2Fparser.py;h=ae2e18ceb710acfc68cb1428f1383f6ff14c0e15;hb=b4af9a40867beff8660612fe20d3838cb375f159;hp=582b8dda8dc7bbc712b335fcc06d7ea9ce885cc3;hpb=b3292d8429f07d0e9d21a3ec2d81dbc4b18332d1;p=nepi.git diff --git a/src/nepi/data/processing/ccn/parser.py b/src/nepi/data/processing/ccn/parser.py index 582b8dda..ae2e18ce 100644 --- a/src/nepi/data/processing/ccn/parser.py +++ b/src/nepi/data/processing/ccn/parser.py @@ -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"])