From: Bob Halley Date: Tue, 13 Aug 2013 16:46:55 +0000 (-0700) Subject: Fix APL trailing zero suppression. X-Git-Tag: v1.11.1-py3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f9645e596eb634564ec5f2b9506526fd7aafde;p=thirdparty%2Fdnspython.git Fix APL trailing zero suppression. This was a part of the port to python3 that got missed... chr(0) != 0. --- 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]