diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | dns/inet.py | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2014-01-10 Bob Halley <halley@ndnspython.org> + + * dns/inet.py (is_multicast): Removed lingering ord()s. + 2013-12-11 Bob Halley <halley@dnspython.org> * dns/query.py: Fix problems with the IXFR state machine which caused diff --git a/dns/inet.py b/dns/inet.py index 3b7e88f..56a1bd7 100644 --- a/dns/inet.py +++ b/dns/inet.py @@ -45,7 +45,7 @@ def inet_pton(family, text): implemented. @rtype: string """ - + if family == AF_INET: return dns.ipv4.inet_aton(text) elif family == AF_INET6: @@ -97,12 +97,11 @@ def is_multicast(text): @rtype: bool """ try: - first = ord(dns.ipv4.inet_aton(text)[0]) + first = dns.ipv4.inet_aton(text)[0] return (first >= 224 and first <= 239) except: try: - first = ord(dns.ipv6.inet_aton(text)[0]) + first = dns.ipv6.inet_aton(text)[0] return (first == 255) except: raise ValueError - |
