(131072, 4199999999),
)
+IGNORED_COUNTRIES = set((
+ # Formerly Yugoslavia
+ "YU",
+
+ # Some people use ZZ to say "no country" or to hide the country
+ "ZZ",
+))
+
# Configure the CSV parser for ARIN
csv.register_dialect("arin", delimiter=",", quoting=csv.QUOTE_ALL, quotechar="\"")
# ... but keep this list distinct...
continue
+ # Ignore certain country codes
+ if val in IGNORED_COUNTRIES:
+ log.debug("Ignoring country code '%s'" % val)
+ continue
+
# When people set country codes to "UK", they actually mean "GB"
if val == "UK":
val = "GB"