diff options
author | Bob Halley <halley@dnspython.org> | 2005-10-12 03:09:01 +0000 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2005-10-12 03:09:01 +0000 |
commit | 8100fd2f68a7421541f20d56998841213c1bbfd8 (patch) | |
tree | fa7ab946f275895b6c3925fe1478e88af9243429 /dns/zone.py | |
parent | 959d0b9eedcbbd6c92ba878496097a96496a870a (diff) | |
download | dnspython-8100fd2f68a7421541f20d56998841213c1bbfd8.tar.gz |
Zone.iterate_rdatasets() and Zone.iterate_rdatas() did not have a
default rdtype of dns.rdatatype.ANY as their docstrings said they did.
They do now.
Diffstat (limited to 'dns/zone.py')
-rw-r--r-- | dns/zone.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dns/zone.py b/dns/zone.py index bef161e..67fa432 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -403,7 +403,8 @@ class Zone(object): rrset = None return rrset - def iterate_rdatasets(self, rdtype=None, covers=dns.rdatatype.NONE): + def iterate_rdatasets(self, rdtype=dns.rdatatype.ANY, + covers=dns.rdatatype.NONE): """Return a generator which yields (name, rdataset) tuples for all rdatasets in the zone which have the specified I{rdtype} and I{covers}. If I{rdtype} is dns.rdatatype.ANY, the default, @@ -425,7 +426,8 @@ class Zone(object): (rds.rdtype == rdtype and rds.covers == covers): yield (name, rds) - def iterate_rdatas(self, rdtype=None, covers=dns.rdatatype.NONE): + def iterate_rdatas(self, rdtype=dns.rdatatype.ANY, + covers=dns.rdatatype.NONE): """Return a generator which yields (name, ttl, rdata) tuples for all rdatas in the zone which have the specified I{rdtype} and I{covers}. If I{rdtype} is dns.rdatatype.ANY, the default, |