From dd1f3a98ca826082b5d8a655e148b656dc110616 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 4 Nov 2013 09:15:09 -0500 Subject: [PATCH] Use builting set() instead of deprecated sets module --- tools/nd_apachelogs2subscriptionstats | 3 +-- tools/nd_popcon2stats | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/nd_apachelogs2subscriptionstats b/tools/nd_apachelogs2subscriptionstats index ff26946..3b56747 100755 --- a/tools/nd_apachelogs2subscriptionstats +++ b/tools/nd_apachelogs2subscriptionstats @@ -7,7 +7,6 @@ import sys import time from datetime import datetime import re -import sets import json import operator @@ -61,7 +60,7 @@ if __name__ == '__main__': rstats[date] = rtime data[releases[release]] = rstats # determine the union of all timestamps - timestamps = sets.Set() + timestamps = set() for codename, stats in data.iteritems(): timestamps.union_update(stats.keys()) export = [{'key': release, diff --git a/tools/nd_popcon2stats b/tools/nd_popcon2stats index 3559401..b0adecd 100755 --- a/tools/nd_popcon2stats +++ b/tools/nd_popcon2stats @@ -7,7 +7,6 @@ import sys import time from datetime import datetime import re -import sets import json import operator @@ -71,7 +70,7 @@ if __name__ == '__main__': data = {} popcon_versions = {} - timestamps = sets.Set() + timestamps = set() for f in sys.argv[1:]: file_reg = file_regex.match(f) -- 2.39.2