summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2014-01-10 06:18:47 -0800
committerBob Halley <halley@dnspython.org>2014-01-10 06:18:47 -0800
commit5bb84b13364333fb4dabe1a9c9c7f464ceb20bf5 (patch)
treee0e795a8a29fe2c3dcbd404e2773f7564fa73459
parent84ec693830d440a98d25b263b4d9d1409a3f2ad6 (diff)
downloaddnspython-5bb84b13364333fb4dabe1a9c9c7f464ceb20bf5.tar.gz
Remove lingering ord()s from is_multicast()
-rw-r--r--ChangeLog4
-rw-r--r--dns/inet.py7
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 56aeb41..51ea381 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
-