From d4235c4031eaba4f4430d2320e02e68a4ec95c13 Mon Sep 17 00:00:00 2001 From: "mshields@google.com" Date: Tue, 8 Feb 2011 04:27:08 +0000 Subject: Fix issue 79. git-svn-id: https://ipaddr-py.googlecode.com/svn@208 09200d28-7f98-11dd-ad27-0f66e57d2035 --- trunk/ipaddr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1