summaryrefslogtreecommitdiffstats
path: root/Tools/world
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-11-19 17:59:07 (GMT)
committerBarry Warsaw <barry@python.org>1996-11-19 17:59:07 (GMT)
commit2a6e68f6935fe86b056be4ce416be6205afc6ac0 (patch)
treea49c1bd86c6dd6fd52bfe4a65e676f738c84fd50 /Tools/world
parentde0e8f763b40f2c50d6f44972335a068b37f9549 (diff)
downloadcpython-2a6e68f6935fe86b056be4ce416be6205afc6ac0.zip
cpython-2a6e68f6935fe86b056be4ce416be6205afc6ac0.tar.gz
cpython-2a6e68f6935fe86b056be4ce416be6205afc6ac0.tar.bz2
Output original address
Diffstat (limited to 'Tools/world')
-rwxr-xr-xTools/world/world8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/world/world b/Tools/world/world
index d0ef262..e54cace 100755
--- a/Tools/world/world
+++ b/Tools/world/world
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /bin/env python
"""Print the long name of an Internet domain.
@@ -43,11 +43,11 @@ def resolve(rawaddr):
return
addr = parts[-1]
if nameorg.has_key(addr):
- print addr, 'is from a USA', nameorg[addr], 'organization'
+ print rawaddr, 'is from a USA', nameorg[addr], 'organization'
elif country.has_key(addr):
- print addr, 'originated from', country[addr]
+ print rawaddr, 'originated from', country[addr]
else:
- print 'Where in the world is %s?' % addr
+ print 'Where in the world is %s?' % rawaddr