From: Georgios Kontaxis Date: Thu, 25 Jun 2026 16:16:40 +0000 (+0000) Subject: nits X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=HEAD;p=ip4addr2asn.git nits --- diff --git a/get_asnmap.sh b/get_asnmap.sh index 1623bb7..a7ede4b 100644 --- a/get_asnmap.sh +++ b/get_asnmap.sh @@ -12,7 +12,7 @@ # - "hk" # - "guam" # -vp="london" +vp="current" tstamp=$(date +%Y%m%d); diff --git a/makedb.py b/makedb.py index ba0367e..7259cfc 100644 --- a/makedb.py +++ b/makedb.py @@ -13,7 +13,7 @@ dirname = os.path.dirname(sys.argv[0]) ip4net2asn = [] # e.g., http://thyme.apnic.net/us/data-raw-table -f = file(os.path.join(dirname, "ip4net2asn.txt"), "r") +f = open(os.path.join(dirname, "ip4net2asn.txt"), "r") for line in f: [ip4net, asn] = line.split("\t") @@ -26,7 +26,7 @@ f.close() asn2name = [] # e.g., http://thyme.apnic.net/hk/data-used-autnums -f = file(os.path.join(dirname, "asn2name.txt"), "r") +f = open(os.path.join(dirname, "asn2name.txt"), "r") for line in f: asn = line[0:6].strip(" ")