]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix doco typo
authorBob Halley <halley@dnspython.org>
Wed, 25 Sep 2024 15:29:13 +0000 (08:29 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 25 Sep 2024 15:29:13 +0000 (08:29 -0700)
doc/zonefile.rst

index abf1c53e00dee4c0f4a46f21812c4b576ff8313c..50edd16463e5cfec005201fb1263af9d5429fbf6 100644 (file)
@@ -21,7 +21,7 @@ Read RRSets with name, TTL, and rdclass forced::
   mx 20 b
   ns ns1
   '''
-  rrsets = dns.read_rrsets(input, name='name', ttl=300)
+  rrsets = dns.zonefile.read_rrsets(input, name='name', ttl=300)
 
 Read RRSets with name, TTL, rdclass, and rdtype forced::
 
@@ -29,7 +29,7 @@ Read RRSets with name, TTL, rdclass, and rdtype forced::
   10 a
   20 b
   '''
-  rrsets = dns.read_rrsets(input, name='name', ttl=300, rdtype='mx')
+  rrsets = dns.zonefile.read_rrsets(input, name='name', ttl=300, rdtype='mx')
 
 Note that in this case the length of rrsets will always be one.
 
@@ -40,8 +40,8 @@ default_rdclass)::
   name1 20 MX 10 a.example.
   name2 30 IN MX 20 b
   '''
-  rrsets = dns.read_rrsets(input, origin='example', relativize=True,
-                           rdclass=None)
+  rrsets = dns.zonefile.read_rrsets(input, origin='example', relativize=True,
+                                    rdclass=None)
 
 The dns.zonefile.Reader Class
 =============================