From: Bob Halley Date: Tue, 15 Nov 2016 14:03:26 +0000 (-0800) Subject: Fix trailing 0 suppression bug reintroduced in py2/py3 merge X-Git-Tag: v1.16.0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61e6bcfe87226b295075eb7b8121dd3cd10bd91;p=thirdparty%2Fdnspython.git Fix trailing 0 suppression bug reintroduced in py2/py3 merge --- 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]