aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/libunbound/python/examples/reverse-lookup.py
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/libunbound/python/examples/reverse-lookup.py')
-rw-r--r--external/unbound/libunbound/python/examples/reverse-lookup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/unbound/libunbound/python/examples/reverse-lookup.py b/external/unbound/libunbound/python/examples/reverse-lookup.py
index 7e06844ec..c9a13fea6 100644
--- a/external/unbound/libunbound/python/examples/reverse-lookup.py
+++ b/external/unbound/libunbound/python/examples/reverse-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
ctx = unbound.ub_ctx()
@@ -39,5 +40,5 @@ ctx.resolvconf("/etc/resolv.conf")
status, result = ctx.resolve(unbound.reverse("74.125.43.147") + ".in-addr.arpa.", unbound.RR_TYPE_PTR, unbound.RR_CLASS_IN)
if status == 0 and result.havedata:
- print("Result.data:", result.data, result.data.domain_list)
+ print("Result.data:", result.data, sorted(result.data.domain_list))