diff options
author | des <des@FreeBSD.org> | 2015-01-02 17:31:36 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2015-01-02 17:31:36 +0000 |
commit | 63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02 (patch) | |
tree | 7e110cb938b4f1a0c7a7f5bbbfc0a682ab32c4b6 /libunbound/python/examples/dns-lookup.py | |
parent | 6979769c22a971f35938b2ca806684fe7214eeb4 (diff) | |
download | FreeBSD-src-63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02.zip FreeBSD-src-63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02.tar.gz |
import unbound 1.5.0
Diffstat (limited to 'libunbound/python/examples/dns-lookup.py')
-rw-r--r-- | libunbound/python/examples/dns-lookup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunbound/python/examples/dns-lookup.py b/libunbound/python/examples/dns-lookup.py index 2821ed3..b3f4008 100644 --- a/libunbound/python/examples/dns-lookup.py +++ b/libunbound/python/examples/dns-lookup.py @@ -39,6 +39,6 @@ ctx.resolvconf("/etc/resolv.conf") status, result = ctx.resolve("www.nic.cz", unbound.RR_TYPE_A, unbound.RR_CLASS_IN) if status == 0 and result.havedata: - print "Result:", result.data.address_list + print("Result:", result.data.address_list) elif status != 0: - print "Error:", unbound.ub_strerror(status) + print("Error:", unbound.ub_strerror(status)) |