]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
doco
authorBob Halley <halley@nominum.com>
Mon, 18 Jul 2011 22:03:50 +0000 (15:03 -0700)
committerBob Halley <halley@nominum.com>
Mon, 18 Jul 2011 22:03:50 +0000 (15:03 -0700)
dns/rdata.py

index fda4b1055524810978bc14ff7fc0be22a681e1d9..350bf790b861942822094b734903711d23f2d151 100644 (file)
@@ -413,12 +413,15 @@ def from_text(rdclass, rdtype, tok, origin = None, relativize = True):
     Once a class is chosen, its from_text() class method is called
     with the parameters to this function.
 
+    If I{tok} is a string, then a tokenizer is created and the string
+    is used as its input.
+
     @param rdclass: The rdata class
     @type rdclass: int
     @param rdtype: The rdata type
     @type rdtype: int
-    @param tok: The tokenizer
-    @type tok: dns.tokenizer.Tokenizer
+    @param tok: The tokenizer or input text
+    @type tok: dns.tokenizer.Tokenizer or string
     @param origin: The origin to use for relative names
     @type origin: dns.name.Name
     @param relativize: Should names be relativized?