summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):