]> granicus.if.org Git - python/commitdiff
Output original address
authorBarry Warsaw <barry@python.org>
Tue, 19 Nov 1996 17:59:07 +0000 (17:59 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 19 Nov 1996 17:59:07 +0000 (17:59 +0000)
Tools/world/world

index d0ef2620f14fbe8c257b2904a5da068873c490f3..e54cace5f5ea256854bd60b19fe554a6f35dd78b 100755 (executable)
@@ -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
 
 
 \f