summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormshields@google.com <mshields@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2011-02-08 04:27:08 +0000
committermshields@google.com <mshields@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2011-02-08 04:27:08 +0000
commitd4235c4031eaba4f4430d2320e02e68a4ec95c13 (patch)
treee678e9e7fa7d7e30908f62335680e1ef7a682d68
parent6ce2f64babd0089ccc5644896e8e5387d3ca3afe (diff)
downloadipaddr-py-d4235c4031eaba4f4430d2320e02e68a4ec95c13.tar.gz
Fix issue 79.
git-svn-id: https://ipaddr-py.googlecode.com/svn@208 09200d28-7f98-11dd-ad27-0f66e57d2035
-rw-r--r--trunk/ipaddr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py
index 239b802..45b98ae 100644
--- a/trunk/ipaddr.py
+++ b/trunk/ipaddr.py
@@ -436,7 +436,8 @@ class _BaseIP(_IPAddrBase):
"""
def __init__(self, address):
- if not isinstance(address, bytes) and '/' in str(address):
+ if (not (_compat_has_real_bytes and isinstance(address, bytes))
+ and '/' in str(address)):
raise AddressValueError(address)
def __eq__(self, other):