]> git.donarmstrong.com Git - neurodebian.git/commitdiff
BF: set class has no union_update, just update
authorYaroslav Halchenko <debian@onerussian.com>
Fri, 15 Nov 2013 03:24:03 +0000 (22:24 -0500)
committerYaroslav Halchenko <debian@onerussian.com>
Fri, 15 Nov 2013 03:24:03 +0000 (22:24 -0500)
tools/nd_apachelogs2subscriptionstats

index 3b567476f438e9923a23d97e88556edf463e56d5..4155089fde14d2ee63618f9f55be9364bb800f8b 100755 (executable)
@@ -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)]}