Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0e8f7 commit 2a6e68fCopy full SHA for 2a6e68f
1 file changed
Tools/world/world
@@ -1,4 +1,4 @@
1
-#! /usr/bin/env python
+#! /bin/env python
2
3
"""Print the long name of an Internet domain.
4
@@ -43,11 +43,11 @@ def resolve(rawaddr):
43
return
44
addr = parts[-1]
45
if nameorg.has_key(addr):
46
- print addr, 'is from a USA', nameorg[addr], 'organization'
+ print rawaddr, 'is from a USA', nameorg[addr], 'organization'
47
elif country.has_key(addr):
48
- print addr, 'originated from', country[addr]
+ print rawaddr, 'originated from', country[addr]
49
else:
50
- print 'Where in the world is %s?' % addr
+ print 'Where in the world is %s?' % rawaddr
51
52
53
0 commit comments