contrib: fix minor typos in makeseeds.py

See #17020
This commit is contained in:
Brian Solon 2019-10-03 14:50:08 -04:00 committed by GitHub
parent 284cd3195a
commit 0b1dcd32bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ def filtermultiport(ips):
def lookup_asn(net, ip): def lookup_asn(net, ip):
''' '''
Look up the asn for an IP (4 or 6) address by querying cymry.com, or None Look up the asn for an IP (4 or 6) address by querying cymru.com, or None
if it could not be found. if it could not be found.
''' '''
try: try:
@ -187,7 +187,7 @@ def main():
# Skip entries with invalid address. # Skip entries with invalid address.
ips = [ip for ip in ips if ip is not None] ips = [ip for ip in ips if ip is not None]
print('%s Skip entries with invalid address' % (ip_stats(ips)), file=sys.stderr) print('%s Skip entries with invalid address' % (ip_stats(ips)), file=sys.stderr)
# Skip duplicattes (in case multiple seeds files were concatenated) # Skip duplicates (in case multiple seeds files were concatenated)
ips = dedup(ips) ips = dedup(ips)
print('%s After removing duplicates' % (ip_stats(ips)), file=sys.stderr) print('%s After removing duplicates' % (ip_stats(ips)), file=sys.stderr)
# Skip entries from suspicious hosts. # Skip entries from suspicious hosts.