summaryrefslogtreecommitdiff
path: root/ipaddr.py
diff options
context:
space:
mode:
authorMichael Shields <mshields@google.com>2011-02-08 04:27:08 +0000
committerMichael Shields <mshields@google.com>2011-02-08 04:27:08 +0000
commita71347345d58190bc4719b89c5b0a35f22f5654e (patch)
treedb57bd215b8a5c9d28e65a2e9e1994977c574c55 /ipaddr.py
parent336f28e9d2165f6e1f33ba6c2a6c173fd08d51b8 (diff)
downloadipaddr-py-a71347345d58190bc4719b89c5b0a35f22f5654e.tar.gz
Fix issue 79.
git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@208 09200d28-7f98-11dd-ad27-0f66e57d2035
Diffstat (limited to 'ipaddr.py')
-rw-r--r--ipaddr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaddr.py b/ipaddr.py
index 239b802..45b98ae 100644
--- a/ipaddr.py
+++ b/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):