From 6a1190792b0409e7a996400614e5e2c6ba02e5f6 Mon Sep 17 00:00:00 2001
From: Riccardo Spagni <ric@spagni.net>
Date: Sun, 31 May 2015 16:36:48 +0200
Subject: update libunbound

---
 external/unbound/libunbound/python/examples/async-lookup.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'external/unbound/libunbound/python/examples/async-lookup.py')

diff --git a/external/unbound/libunbound/python/examples/async-lookup.py b/external/unbound/libunbound/python/examples/async-lookup.py
index cbb8ea02d..936be3218 100644
--- a/external/unbound/libunbound/python/examples/async-lookup.py
+++ b/external/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
 
 
-- 
cgit v1.2.3