diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | pysnmp/carrier/asynsock/base.py | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -85,6 +85,8 @@ Revision 4.2.6rc0 - Fix to licensing terms of multiple twisted backend modules to make the whole pysnmp package licensed under BSD 2-Clause license. This change has been explicitly permitted by the original modules authors. +- Fix to asyncore-based transport not to use asyncore's cheap inheritance + from socket object what caused warnings. - Missing wrongLength and wrongEncoding SMI errors added. Revision 4.2.5 diff --git a/pysnmp/carrier/asynsock/base.py b/pysnmp/carrier/asynsock/base.py index 6e9d0db..7685367 100644 --- a/pysnmp/carrier/asynsock/base.py +++ b/pysnmp/carrier/asynsock/base.py @@ -45,6 +45,8 @@ class AbstractSocketTransport(asyncore.dispatcher, AbstractTransport): sock.setblocking(0) self.set_socket(sock) + def __hash__(self): return hash(self.socket) + # The following two methods are part of base class so here we overwrite # them to separate socket management from dispatcher registration tasks. # These two are just for dispatcher registration. |