Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3ffc5036
Commit
3ffc5036
authored
Nov 20, 1996
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the USA'isms that aren't really true
parent
3d919c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Tools/world/world
Tools/world/world
+4
-2
No files found.
Tools/world/world
View file @
3ffc5036
...
...
@@ -19,6 +19,8 @@ The latest known change to this information was:
Thu Feb 10 10:20:28 MET 1994
This script also knows about non-geographic top-level domains.
Usage: %s [-d] [-h] addr [addr ...]
-d (--dump) -- print mapping of all known top-level domains
...
...
@@ -47,7 +49,7 @@ def resolve(rawaddr):
return
addr
=
parts
[
-
1
]
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
):
print
rawaddr
,
'originated from'
,
country
[
addr
]
else
:
...
...
@@ -71,7 +73,7 @@ def main():
usage
(
status
)
if
dump
:
print
'
USA-centr
ic domains:'
print
'
Non-geograph
ic domains:'
codes
=
nameorg
.
keys
()
codes
.
sort
()
for
code
in
codes
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment