diff options
author | mshields@google.com <mshields@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035> | 2011-02-08 04:27:08 +0000 |
---|---|---|
committer | mshields@google.com <mshields@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035> | 2011-02-08 04:27:08 +0000 |
commit | d4235c4031eaba4f4430d2320e02e68a4ec95c13 (patch) | |
tree | e678e9e7fa7d7e30908f62335680e1ef7a682d68 | |
parent | 6ce2f64babd0089ccc5644896e8e5387d3ca3afe (diff) | |
download | ipaddr-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.py | 3 |
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): |