From: Brian Wellington Date: Tue, 30 Jun 2020 15:36:39 +0000 (-0700) Subject: Remove spaces from to_text(). X-Git-Tag: v2.0.0rc2~35^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cb19a0d0f09aa8746f7116528948d697ebcb9d5;p=thirdparty%2Fdnspython.git Remove spaces from to_text(). --- diff --git a/dns/rdtypes/ANY/TSIG.py b/dns/rdtypes/ANY/TSIG.py index c2a6ce01..002c2dbc 100644 --- a/dns/rdtypes/ANY/TSIG.py +++ b/dns/rdtypes/ANY/TSIG.py @@ -63,9 +63,9 @@ class TSIG(dns.rdata.Rdata): def to_text(self, origin=None, relativize=True, **kw): algorithm = self.algorithm.choose_relativity(origin, relativize) return f"{algorithm} {self.fudge} {self.time_signed} " + \ - f"{len(self.mac)} {dns.rdata._base64ify(self.mac)} " + \ + f"{len(self.mac)} {dns.rdata._base64ify(self.mac, 256)} " + \ f"{self.original_id} {self.error} " + \ - f"{len(self.other)} {dns.rdata._base64ify(self.other)}" + f"{len(self.other)} {dns.rdata._base64ify(self.other, 256)}" def _to_wire(self, file, compress=None, origin=None, canonicalize=False): self.algorithm.to_wire(file, None, origin, False)