From: Bob Halley Date: Mon, 17 Oct 2005 05:23:42 +0000 (+0000) Subject: fix doco bugs; note need to match relativize between dns.query.xfr() and dns.zone... X-Git-Tag: v1.3.5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e57bde05a804229251f00b67c7105bad69dc78f;p=thirdparty%2Fdnspython.git fix doco bugs; note need to match relativize between dns.query.xfr() and dns.zone.from_xfr() --- diff --git a/dns/query.py b/dns/query.py index 86df19c9..943d14e9 100644 --- a/dns/query.py +++ b/dns/query.py @@ -86,7 +86,7 @@ def udp(q, where, timeout=None, port=53, af=None, source=None, source_port=0): @type source: string @param source_port: The port from which to send the message. The default is 0. - @type port: int""" + @type source_port: int""" wire = q.to_wire() if af is None: @@ -179,7 +179,7 @@ def tcp(q, where, timeout=None, port=53, af=None, source=None, source_port=0): @type source: string @param source_port: The port from which to send the message. The default is 0. - @type port: int""" + @type source_port: int""" wire = q.to_wire() if af is None: @@ -245,7 +245,8 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, @param keyname: The name of the TSIG key to use @type keyname: dns.name.Name object or string @param relativize: If True, all names in the zone will be relativized to - the zone origin. + the zone origin. It is essential that the relativize setting matches + the one specified to dns.zone.from_xfr(). @type relativize: bool @param af: the address family to use. The default is None, which causes the address family to use to be inferred from the form of of where. @@ -260,7 +261,7 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, @type source: string @param source_port: The port from which to send the message. The default is 0. - @type port: int""" + @type source_port: int""" if isinstance(zone, str): zone = dns.name.from_text(zone)