summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2011-05-03 11:01:06 +0100
committerBob Halley <halley@nominum.com>2011-05-03 11:01:06 +0100
commit776ae6b12e90216586a068401e3c0fc787d91b62 (patch)
tree3758c05a9b14df4bb2f8403dae38db84a4e0f3f2 /examples
parent987ee2c5ebe1cdafa740a64095a2c3e08c78d7c4 (diff)
downloaddnspython-776ae6b12e90216586a068401e3c0fc787d91b62.tar.gz
python 3 iteration fixes
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/xfr.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/xfr.py b/examples/xfr.py
index 24e1c45..669c6d1 100755
--- a/examples/xfr.py
+++ b/examples/xfr.py
@@ -3,8 +3,7 @@
import dns.query
import dns.zone
-z = dns.zone.from_xfr(dns.query.xfr('204.152.189.147', 'dnspython.org'))
-names = z.nodes.keys()
-names.sort()
+z = dns.zone.from_xfr(dns.query.xfr('78.32.75.15', 'dnspython.org'))
+names = sorted(z)
for n in names:
print(z[n].to_text(n))