diff options
author | Michael Shields <mshields@google.com> | 2011-02-08 04:27:08 +0000 |
---|---|---|
committer | Michael Shields <mshields@google.com> | 2011-02-08 04:27:08 +0000 |
commit | a71347345d58190bc4719b89c5b0a35f22f5654e (patch) | |
tree | db57bd215b8a5c9d28e65a2e9e1994977c574c55 /ipaddr.py | |
parent | 336f28e9d2165f6e1f33ba6c2a6c173fd08d51b8 (diff) | |
download | ipaddr-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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): |