summaryrefslogtreecommitdiff
path: root/dns/rdata.pyi
Commit message (Collapse)AuthorAgeFilesLines
* Improvements to dns.rdata.to_wire().Brian Wellington2020-06-011-2/+2
| | | | | | | | | | | | | | | This does two things. 1) Makes the file parameter optional, removing the requirement that callers create an io.BytesIO object if all they want is the bytes. This is done by renaming all of the rdata subclass to_wire() methods to _to_wire(), and making dns.rdata.to_wire() create the io.BytesIO internally if needed, and then delegate to the subclass. 2) Add canonicalize=False parameter, allowing code reuse for conversion to wire format and conversion to hashable format. This also removes all of the rdata subclass to_digestable routines that are no longer needed, as dns.rdata.to_digestable will work for all rdata types.
* IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.Bob Halley2020-05-031-1/+1
|
* add IDNA codec parameter to dns.rdata.from_text() type signature.Bob Halley2020-05-031-2/+4
|
* Add relativize_to to from_text().Brian Wellington2020-03-181-1/+1
| | | | | | | | | | | | | | | When calling from_text, the zone code needs to apply the current origin (which may or may not be the zone origin, if sub-zone $ORIGIN statements are present), and may also want to relativize the contents to the zone origin. Previously, this was done by explicitly reading records as absolute, and then relativizing them laster. With this change, the work is moved to the tokenizer. This gets rid of the remaining internal uses of dns.rdata.choose_relativity(), which prevents rdata from being immutable.
* Initial type signaturesJanus2018-07-311-0/+17