Skip to content
This repository
Browse code

doco

  • Loading branch information...
commit ba327515603b57ea010a345ed4bcc71ba399882f 1 parent 8914cd4
Bob Halley authored July 18, 2011

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  dns/rdata.py
7  dns/rdata.py
@@ -413,12 +413,15 @@ def from_text(rdclass, rdtype, tok, origin = None, relativize = True):
413 413
     Once a class is chosen, its from_text() class method is called
414 414
     with the parameters to this function.
415 415
 
  416
+    If I{tok} is a string, then a tokenizer is created and the string
  417
+    is used as its input.
  418
+
416 419
     @param rdclass: The rdata class
417 420
     @type rdclass: int
418 421
     @param rdtype: The rdata type
419 422
     @type rdtype: int
420  
-    @param tok: The tokenizer
421  
-    @type tok: dns.tokenizer.Tokenizer
  423
+    @param tok: The tokenizer or input text
  424
+    @type tok: dns.tokenizer.Tokenizer or string
422 425
     @param origin: The origin to use for relative names
423 426
     @type origin: dns.name.Name
424 427
     @param relativize: Should names be relativized?

0 notes on commit ba32751

Please sign in to comment.
Something went wrong with that request. Please try again.