diff options
| author | Bob Halley <halley@dnspython.org> | 2018-02-20 12:08:47 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2018-02-20 12:08:47 -0800 |
| commit | d7ab9b5d52c16fea449ebcde8010d3c62cc9d632 (patch) | |
| tree | c9556dd29fae918611d08e17b00a07af35e91232 /examples/xfr.py | |
| parent | 81b128f71a1b5e0199a8993b2e951ee7ba6c1bef (diff) | |
| download | dnspython-d7ab9b5d52c16fea449ebcde8010d3c62cc9d632.tar.gz | |
delint
Diffstat (limited to 'examples/xfr.py')
| -rwxr-xr-x | examples/xfr.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/xfr.py b/examples/xfr.py index a7c2bb9..ec24b42 100755 --- a/examples/xfr.py +++ b/examples/xfr.py @@ -10,7 +10,5 @@ soa_answer = dns.resolver.query('dnspython.org', 'SOA') master_answer = dns.resolver.query(soa_answer[0].mname, 'A') z = dns.zone.from_xfr(dns.query.xfr(master_answer[0].address, 'dnspython.org')) -names = z.nodes.keys() -names.sort() -for n in names: +for n in sorted(z.nodes.keys()): print(z[n].to_text(n)) |
