blind review on list-operations added by 2to3:
[nepi.git] / examples / ccn_emu_live / dce_4_nodes_linear.py
index 3a7221d..799e4e4 100644 (file)
@@ -46,7 +46,7 @@ def avg_interest_rtt(ec, run):
 
     # statistics on RTT
     rtts = [content_names[content_name]["rtt"] \
-            for content_name in list(content_names.keys())]
+            for content_name in content_names]
 
     # sample mean and standard deviation
     sample = numpy.array(rtts)
@@ -78,7 +78,7 @@ def post_process(ec, runs):
     low = numpy.array([float(m[1]) for m in metrics])
     high = numpy.array([float(m[2]) for m in metrics])
     error = [y - low, high - y]
-    x = list(range(1,runs + 1))
+    x = range(1,runs + 1)
 
     # plot average RTT and confidence interval for each iteration
     pyplot.errorbar(x, y, yerr = error, fmt='o')