fixed incompatibility bug with pypy
[p2pool.git] / p2pool / util / math.py
index 04ed3ff..6ceb9ff 100644 (file)
@@ -230,3 +230,8 @@ class RateMonitor(object):
             self.first_timestamp = t
         else:
             self.datums.append((t, datum))
+
+def merge_dicts(*dicts):
+    res = {}
+    for d in dicts: res.update(d)
+    return res