Kaydet (Commit) 3ffc5036 authored tarafından Barry Warsaw's avatar Barry Warsaw

Removed the USA'isms that aren't really true

üst 3d919c4d
...@@ -19,6 +19,8 @@ The latest known change to this information was: ...@@ -19,6 +19,8 @@ The latest known change to this information was:
Thu Feb 10 10:20:28 MET 1994 Thu Feb 10 10:20:28 MET 1994
This script also knows about non-geographic top-level domains.
Usage: %s [-d] [-h] addr [addr ...] Usage: %s [-d] [-h] addr [addr ...]
-d (--dump) -- print mapping of all known top-level domains -d (--dump) -- print mapping of all known top-level domains
...@@ -47,7 +49,7 @@ def resolve(rawaddr): ...@@ -47,7 +49,7 @@ def resolve(rawaddr):
return return
addr = parts[-1] addr = parts[-1]
if nameorg.has_key(addr): if nameorg.has_key(addr):
print rawaddr, 'is from a USA', nameorg[addr], 'organization' print rawaddr, 'is from a', nameorg[addr], 'organization'
elif country.has_key(addr): elif country.has_key(addr):
print rawaddr, 'originated from', country[addr] print rawaddr, 'originated from', country[addr]
else: else:
...@@ -71,7 +73,7 @@ def main(): ...@@ -71,7 +73,7 @@ def main():
usage(status) usage(status)
if dump: if dump:
print 'USA-centric domains:' print 'Non-geographic domains:'
codes = nameorg.keys() codes = nameorg.keys()
codes.sort() codes.sort()
for code in codes: for code in codes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment