From 6c73bd5d2364341f242598feaa0f6960bf2b1bf8 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 15 Nov 2016 06:12:58 -0800 Subject: [PATCH] fix zero padding on python3 --- dns/rdtypes/IN/APL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: # -- 2.47.3