From c8f9645e596eb634564ec5f2b9506526fd7aafde Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 13 Aug 2013 09:46:55 -0700 Subject: [PATCH] Fix APL trailing zero suppression. This was a part of the port to python3 that got missed... chr(0) != 0. --- dns/rdtypes/IN/APL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/rdtypes/IN/APL.py b/dns/rdtypes/IN/APL.py index bc3748b7..a7b8510d 100644 --- a/dns/rdtypes/IN/APL.py +++ b/dns/rdtypes/IN/APL.py @@ -61,7 +61,7 @@ class APLItem(object): # last = 0 for i in range(len(address) - 1, -1, -1): - if address[i] != chr(0): + if address[i] != 0: last = i + 1 break address = address[0 : last] -- 2.47.3