summaryrefslogtreecommitdiffstats
path: root/libunbound/python/examples/async-lookup.py
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2015-01-02 17:31:36 +0000
committerdes <des@FreeBSD.org>2015-01-02 17:31:36 +0000
commit63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02 (patch)
tree7e110cb938b4f1a0c7a7f5bbbfc0a682ab32c4b6 /libunbound/python/examples/async-lookup.py
parent6979769c22a971f35938b2ca806684fe7214eeb4 (diff)
downloadFreeBSD-src-63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02.zip
FreeBSD-src-63bb89eccfead7fdbe9aaab3df7eeca0ff1fbc02.tar.gz
import unbound 1.5.0
Diffstat (limited to 'libunbound/python/examples/async-lookup.py')
-rw-r--r--libunbound/python/examples/async-lookup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libunbound/python/examples/async-lookup.py b/libunbound/python/examples/async-lookup.py
index 52a2d3c..cbb8ea0 100644
--- a/libunbound/python/examples/async-lookup.py
+++ b/libunbound/python/examples/async-lookup.py
@@ -39,9 +39,9 @@ ctx = unbound.ub_ctx()
ctx.resolvconf("/etc/resolv.conf")
def call_back(my_data,status,result):
- print "Call_back:", my_data
+ print("Call_back:", my_data)
if status == 0 and result.havedata:
- print "Result:", result.data.address_list
+ print("Result:", result.data.address_list)
my_data['done_flag'] = True
@@ -53,4 +53,4 @@ while (status == 0) and (not my_data['done_flag']):
time.sleep(0.1)
if (status != 0):
- print "Resolve error:", unbound.ub_strerror(status)
+ print("Resolve error:", unbound.ub_strerror(status))
OpenPOWER on IntegriCloud