diff options
| author | Bob Halley <halley@dnspython.org> | 2013-08-13 09:46:55 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2013-08-13 09:46:55 -0700 |
| commit | c8f9645e596eb634564ec5f2b9506526fd7aafde (patch) | |
| tree | f3faab3d936d7525dc83bc563ae1c7d519b72c24 | |
| parent | bb5184ca8a797b43493934095503cbc057927cac (diff) | |
| download | dnspython-c8f9645e596eb634564ec5f2b9506526fd7aafde.tar.gz | |
Fix APL trailing zero suppression.
This was a part of the port to python3 that got missed... chr(0) != 0.
| -rw-r--r-- | dns/rdtypes/IN/APL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/rdtypes/IN/APL.py b/dns/rdtypes/IN/APL.py index bc3748b..a7b8510 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] |
