From: Bob Halley Date: Tue, 15 Nov 2016 14:12:58 +0000 (-0800) Subject: fix zero padding on python3 X-Git-Tag: v1.16.0~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c73bd5d2364341f242598feaa0f6960bf2b1bf8;p=thirdparty%2Fdnspython.git fix zero padding on python3 --- diff --git a/dns/rdtypes/IN/APL.py b/dns/rdtypes/IN/APL.py index 2bd4ce5a..ac9c1f02 100644 --- a/dns/rdtypes/IN/APL.py +++ b/dns/rdtypes/IN/APL.py @@ -142,11 +142,11 @@ class APL(dns.rdata.Rdata): l = len(address) if header[0] == 1: if l < 4: - address += '\x00' * (4 - l) + address += b'\x00' * (4 - l) address = dns.inet.inet_ntop(dns.inet.AF_INET, address) elif header[0] == 2: if l < 16: - address += '\x00' * (16 - l) + address += b'\x00' * (16 - l) address = dns.inet.inet_ntop(dns.inet.AF_INET6, address) else: #