Commit 50ca1fc4 authored by Denis Bilenko's avatar Denis Bilenko

examples/dns_mass_resolve.py: 2.4-compatibility

parent 4d4d3931
...@@ -19,6 +19,7 @@ finished = 0 ...@@ -19,6 +19,7 @@ finished = 0
def job(url): def job(url):
global succeed, finished global succeed, finished
try:
try: try:
ip = socket.gethostbyname(url) ip = socket.gethostbyname(url)
print '%s = %s' % (url, ip) print '%s = %s' % (url, ip)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment