summaryrefslogtreecommitdiff
path: root/examples/mx.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-01-16 19:15:13 -0800
committerBob Halley <halley@nominum.com>2010-01-25 08:20:25 -0800
commit89fcd1409056afc73362f3836ef1cd99156b093e (patch)
tree2aba764ca1c34d2dcc1a1065409b9cf370f24cb8 /examples/mx.py
parent53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4 (diff)
downloaddnspython-89fcd1409056afc73362f3836ef1cd99156b093e.tar.gz
Initial python 3 port (may have sharp edges still!)
Diffstat (limited to 'examples/mx.py')
-rwxr-xr-xexamples/mx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/mx.py b/examples/mx.py
index 3036e70..4fe34df 100755
--- a/examples/mx.py
+++ b/examples/mx.py
@@ -4,4 +4,5 @@ import dns.resolver
answers = dns.resolver.query('nominum.com', 'MX')
for rdata in answers:
- print 'Host', rdata.exchange, 'has preference', rdata.preference
+ print('Host', rdata.exchange, 'has preference', rdata.preference)
+