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

index 4ea5f02d0868077294bfc70b838ebd7203b799e3..74ddef0b05afbfd63110cc23447d7af87a352cd9 100644 (file)
@@ -412,12 +412,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?