diff options
Diffstat (limited to 'trunk/ipaddr.py')
-rw-r--r-- | trunk/ipaddr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py index 78f6b63..2f4a716 100644 --- a/trunk/ipaddr.py +++ b/trunk/ipaddr.py @@ -593,8 +593,8 @@ class _BaseNet(_IPAddrBase): def __contains__(self, other): # dealing with another network. if isinstance(other, _BaseNet): - return (int(self.network) <= int(other._ip) and - int(self.broadcast) >= int(other.broadcast)) + return (self.network <= other.network and + self.broadcast >= other.broadcast) # dealing with another address else: return (int(self.network) <= int(other._ip) <= |