summaryrefslogtreecommitdiffstats
path: root/contrib/unbound/libunbound/python/examples/async-lookup.py
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2015-09-17 16:10:11 +0000
committerdes <des@FreeBSD.org>2015-09-17 16:10:11 +0000
commitc5050a3b9f622f6308084b1e253919467f3c6ff0 (patch)
tree9ba31f6272e0b39184eba0b36bb65cda61f09b93 /contrib/unbound/libunbound/python/examples/async-lookup.py
parent5ef9f703be928fbaab82c07bd99fa37838acd02f (diff)
parent0b3e2c01ad6e393f14541f9b977e89fdb993a100 (diff)
downloadFreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.zip
FreeBSD-src-c5050a3b9f622f6308084b1e253919467f3c6ff0.tar.gz
Upgrade to Unbound 1.5.4.
Diffstat (limited to 'contrib/unbound/libunbound/python/examples/async-lookup.py')
-rw-r--r--contrib/unbound/libunbound/python/examples/async-lookup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/unbound/libunbound/python/examples/async-lookup.py b/contrib/unbound/libunbound/python/examples/async-lookup.py
index cbb8ea0..936be32 100644
--- a/contrib/unbound/libunbound/python/examples/async-lookup.py
+++ b/contrib/unbound/libunbound/python/examples/async-lookup.py
@@ -32,6 +32,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
'''
+from __future__ import print_function
import unbound
import time
@@ -39,9 +40,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:", sorted(my_data))
if status == 0 and result.havedata:
- print("Result:", result.data.address_list)
+ print("Result:", sorted(result.data.address_list))
my_data['done_flag'] = True
OpenPOWER on IntegriCloud