Remove `pysnmp.carrier.asynsock` sub-package (#166)
Legacy `pysnmp.carrier.asynsock` backward-compatible wrapper over `pysnmp.carrier.asyncore` is gonepull/175/head
parent
5168479e42
commit
a93241007b
10
CHANGES.txt
10
CHANGES.txt
|
@ -10,9 +10,13 @@ Revision 5.0.0, released 2018-07-??
|
|||
PyCryptodomex to pyca/cryptography whenever available on the
|
||||
platform.
|
||||
- Many really old backward-compatibility code snippets removed.
|
||||
Most importantly, the `pysnmp.entity.rfc3413.oneliner` and
|
||||
everything related to (non-standard) UNIX domain socket transport
|
||||
are gone.
|
||||
Most importantly:
|
||||
|
||||
* `pysnmp.entity.rfc3413.oneliner` and everything related
|
||||
to the (non-standard) UNIX domain socket transport is gone
|
||||
* `pysnmp.carrier.asynsock` backward-compatible wrapper over
|
||||
`pysnmp.carrier.asyncore` is gone
|
||||
|
||||
- The MIB instrumentation API overhauled in backward incompatible
|
||||
way:
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ The following Net-SNMP command will produce similar SNMP notification:
|
|||
|
||||
"""#
|
||||
from time import time
|
||||
from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher
|
||||
from pysnmp.carrier.asynsock.dgram import udp, udp6
|
||||
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
|
||||
from pysnmp.carrier.asyncore.dgram import udp, udp6
|
||||
from pyasn1.codec.ber import encoder, decoder
|
||||
from pysnmp.proto.api import v2c as pMod
|
||||
|
||||
|
@ -61,7 +61,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
|
|||
return wholeMsg
|
||||
|
||||
|
||||
transportDispatcher = AsynsockDispatcher()
|
||||
transportDispatcher = AsyncoreDispatcher()
|
||||
|
||||
transportDispatcher.registerRecvCbFun(cbRecvFun)
|
||||
transportDispatcher.registerTimerCbFun(cbTimerFun)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
# This file is necessary to make this directory a package.
|
|
@ -1 +0,0 @@
|
|||
# This file is necessary to make this directory a package.
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# This file is part of pysnmp software.
|
||||
#
|
||||
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
|
||||
# License: http://snmplabs.com/pysnmp/license.html
|
||||
#
|
||||
from pysnmp.carrier.asyncore.dgram.udp import *
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# This file is part of pysnmp software.
|
||||
#
|
||||
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
|
||||
# License: http://snmplabs.com/pysnmp/license.html
|
||||
#
|
||||
from pysnmp.carrier.asyncore.dgram.udp6 import *
|
|
@ -1,9 +0,0 @@
|
|||
#
|
||||
# This file is part of pysnmp software.
|
||||
#
|
||||
# Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
|
||||
# License: http://snmplabs.com/pysnmp/license.html
|
||||
#
|
||||
from pysnmp.carrier.asyncore.dispatch import *
|
||||
|
||||
AsynsockDispatcher = AsyncoreDispatcher
|
Loading…
Reference in New Issue