diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-09-17 15:21:27 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-09-17 15:21:27 +0000 |
commit | af3dabbf15fa4d0e7e45a43fbf9a2195edfa941c (patch) | |
tree | ee00f42bccdce0e3581d05a17f58bb7429f0ceda /libunbound/python/examples/reverse-lookup.py | |
parent | 0ea28240053521a309698413a426b4d730a3d60c (diff) |
Diffstat (limited to 'libunbound/python/examples/reverse-lookup.py')
-rw-r--r-- | libunbound/python/examples/reverse-lookup.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libunbound/python/examples/reverse-lookup.py b/libunbound/python/examples/reverse-lookup.py index 7e06844ec6a97..c9a13fea6299b 100644 --- a/libunbound/python/examples/reverse-lookup.py +++ b/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)) |