]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove spaces from to_text().
authorBrian Wellington <bwelling@xbill.org>
Tue, 30 Jun 2020 15:36:39 +0000 (08:36 -0700)
committerBrian Wellington <bwelling@xbill.org>
Tue, 30 Jun 2020 15:36:39 +0000 (08:36 -0700)
dns/rdtypes/ANY/TSIG.py

index c2a6ce01a06032b9f1e1cb61132b7bd2cf285ae5..002c2dbc87a29bb2fc5804ff441dba7eef30f14a 100644 (file)
@@ -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)