From 5dd6c9f932a2b07412488d62dad2b700054d0903 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 14 Nov 2013 22:24:03 -0500 Subject: [PATCH] BF: set class has no union_update, just update --- tools/nd_apachelogs2subscriptionstats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nd_apachelogs2subscriptionstats b/tools/nd_apachelogs2subscriptionstats index 3b56747..4155089 100755 --- a/tools/nd_apachelogs2subscriptionstats +++ b/tools/nd_apachelogs2subscriptionstats @@ -62,7 +62,7 @@ if __name__ == '__main__': # determine the union of all timestamps timestamps = set() for codename, stats in data.iteritems(): - timestamps.union_update(stats.keys()) + timestamps.update(stats.keys()) export = [{'key': release, 'values': [[ts, float(data[release].setdefault(ts, 0)) / 7] for ts in sorted(timestamps)]} -- 2.39.2