Fix some python3 syntax errors

This commit is contained in:
Stuart D. Gathman
2017-04-20 17:00:14 -04:00
parent 42e7a02638
commit 36750bac78
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ def DNSLookup(name, qtype):
# A RR as dotted quad. For consistency, this driver should
# return both as binary string.
return [((a['name'], a['typename']), a['data']) for a in resp.answers]
except IOError, x:
raise DNSError, str(x)
except IOError as x:
raise DNSError(str(x))
class Session(object):
"""A Session object has a simple cache with no TTL that is valid