]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Make dns.rdata._base64ify(..., 0) work.
authorBrian Wellington <bwelling@xbill.org>
Thu, 9 Jul 2020 16:52:05 +0000 (09:52 -0700)
committerBrian Wellington <bwelling@xbill.org>
Thu, 9 Jul 2020 16:52:05 +0000 (09:52 -0700)
commit033349257b72cb7bf5d65a536051bbe14b80e141
tree46753a2f1368e395feb944dca423b7288c8fa6d2
parent6070cffcadf72508c19e60cd6d4d24601c1ea7aa
Make dns.rdata._base64ify(..., 0) work.

In some cases, the caller absolutely doesn't want word breaks.  This
shouldn't be the case for any normal DNS record, but is for records that
don't have well-defined text formats, like TSIG and TKEY.  Allow them to
pass 0 (or None), to indicate that no word breaks should be added.

Previously, passing either 0 or None resulted in an exception, as the
value was used directly as the step in a slice.
dns/rdata.py
dns/rdtypes/ANY/TSIG.py