From f61e6bcfe87226b295075eb7b8121dd3cd10bd91 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 15 Nov 2016 06:03:26 -0800 Subject: [PATCH] Fix trailing 0 suppression bug reintroduced in py2/py3 merge --- 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 57ef6c0a..82531688 100644 --- a/dns/rdtypes/IN/APL.py +++ b/dns/rdtypes/IN/APL.py @@ -63,7 +63,7 @@ class APLItem(object): # last = 0 for i in xrange(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