]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove lingering ord()s from is_multicast()
authorBob Halley <halley@dnspython.org>
Fri, 10 Jan 2014 14:18:47 +0000 (06:18 -0800)
committerBob Halley <halley@dnspython.org>
Fri, 10 Jan 2014 14:18:47 +0000 (06:18 -0800)
ChangeLog
dns/inet.py

index 56aeb41bad34dec20c2befaf443ba4e0078ac1e7..51ea381d4eb9694f5bb2822be1b09c4fef311410 100644 (file)
--- 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
index 3b7e88f7b1b767c377faee4fb12cd042e983e4db..56a1bd7c89b4548abb252f458f37eac707bdf6cf 100644 (file)
@@ -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
-