def _cmp_prepare(self, other):
if isinstance(other, self.__class__):<EOL><INDENT>return other._ip_dec<EOL><DEDENT>elif isinstance(other, int):<EOL><INDENT>return other<EOL><DEDENT>return self.__class__(other)._ip_dec<EOL>
Prepare the item to be compared with this address/netmask.