Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a6e68f

Browse files
committed
Output original address
1 parent de0e8f7 commit 2a6e68f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Tools/world/world

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#! /bin/env python
22

33
"""Print the long name of an Internet domain.
44
@@ -43,11 +43,11 @@ def resolve(rawaddr):
4343
return
4444
addr = parts[-1]
4545
if nameorg.has_key(addr):
46-
print addr, 'is from a USA', nameorg[addr], 'organization'
46+
print rawaddr, 'is from a USA', nameorg[addr], 'organization'
4747
elif country.has_key(addr):
48-
print addr, 'originated from', country[addr]
48+
print rawaddr, 'originated from', country[addr]
4949
else:
50-
print 'Where in the world is %s?' % addr
50+
print 'Where in the world is %s?' % rawaddr
5151

5252

5353

0 commit comments

Comments
 (0)