diff options
Diffstat (limited to 'pysnmp/carrier')
-rw-r--r-- | pysnmp/carrier/asyncore/dgram/base.py | 4 | ||||
-rw-r--r-- | pysnmp/carrier/asyncore/dgram/udp6.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/carrier/asyncore/dgram/base.py b/pysnmp/carrier/asyncore/dgram/base.py index 0c1bfddb..428754cb 100644 --- a/pysnmp/carrier/asyncore/dgram/base.py +++ b/pysnmp/carrier/asyncore/dgram/base.py @@ -68,8 +68,8 @@ class DgramSocketTransport(AbstractSocketTransport): return self def enablePktInfo(self, flag=1): - if not hasattr(self.socket, 'sendmsg') or \ - not hasattr(self.socket, 'recvmsg'): + if (not hasattr(self.socket, 'sendmsg') or + not hasattr(self.socket, 'recvmsg')): raise error.CarrierError('sendmsg()/recvmsg() interface is not supported by this OS and/or Python version') try: diff --git a/pysnmp/carrier/asyncore/dgram/udp6.py b/pysnmp/carrier/asyncore/dgram/udp6.py index 82beb646..cf11daa8 100644 --- a/pysnmp/carrier/asyncore/dgram/udp6.py +++ b/pysnmp/carrier/asyncore/dgram/udp6.py @@ -30,8 +30,8 @@ class Udp6SocketTransport(DgramSocketTransport): ta = self.addressType((transportAddress[0], transportAddress[1], 0, 0)) - if isinstance(transportAddress, self.addressType) and \ - transportAddress.getLocalAddress(): + if (isinstance(transportAddress, self.addressType) and + transportAddress.getLocalAddress()): return ta.setLocalAddress(transportAddress.getLocalAddress()) else: return ta.setLocalAddress(self.getLocalAddress()) |