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
|
PyCryptodomex to pyca/cryptography whenever available on the
|
||||||
platform.
|
platform.
|
||||||
- Many really old backward-compatibility code snippets removed.
|
- Many really old backward-compatibility code snippets removed.
|
||||||
Most importantly, the `pysnmp.entity.rfc3413.oneliner` and
|
Most importantly:
|
||||||
everything related to (non-standard) UNIX domain socket transport
|
|
||||||
are gone.
|
* `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
|
- The MIB instrumentation API overhauled in backward incompatible
|
||||||
way:
|
way:
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ The following Net-SNMP command will produce similar SNMP notification:
|
||||||
|
|
||||||
"""#
|
"""#
|
||||||
from time import time
|
from time import time
|
||||||
from pysnmp.carrier.asynsock.dispatch import AsynsockDispatcher
|
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
|
||||||
from pysnmp.carrier.asynsock.dgram import udp, udp6
|
from pysnmp.carrier.asyncore.dgram import udp, udp6
|
||||||
from pyasn1.codec.ber import encoder, decoder
|
from pyasn1.codec.ber import encoder, decoder
|
||||||
from pysnmp.proto.api import v2c as pMod
|
from pysnmp.proto.api import v2c as pMod
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress,
|
||||||
return wholeMsg
|
return wholeMsg
|
||||||
|
|
||||||
|
|
||||||
transportDispatcher = AsynsockDispatcher()
|
transportDispatcher = AsyncoreDispatcher()
|
||||||
|
|
||||||
transportDispatcher.registerRecvCbFun(cbRecvFun)
|
transportDispatcher.registerRecvCbFun(cbRecvFun)
|
||||||
transportDispatcher.registerTimerCbFun(cbTimerFun)
|
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
|
|
2
setup.py
2
setup.py
|
@ -100,8 +100,6 @@ params.update({
|
||||||
'pysnmp.smi.mibs',
|
'pysnmp.smi.mibs',
|
||||||
'pysnmp.smi.mibs.instances',
|
'pysnmp.smi.mibs.instances',
|
||||||
'pysnmp.carrier',
|
'pysnmp.carrier',
|
||||||
'pysnmp.carrier.asynsock',
|
|
||||||
'pysnmp.carrier.asynsock.dgram',
|
|
||||||
'pysnmp.carrier.asyncore',
|
'pysnmp.carrier.asyncore',
|
||||||
'pysnmp.carrier.asyncore.dgram',
|
'pysnmp.carrier.asyncore.dgram',
|
||||||
'pysnmp.carrier.twisted',
|
'pysnmp.carrier.twisted',
|
||||||
|
|
Loading…
Reference in New Issue