Remove `pysnmp.carrier.asynsock` sub-package (#166)

Legacy `pysnmp.carrier.asynsock` backward-compatible
wrapper over `pysnmp.carrier.asyncore` is gone
pull/175/head
Ilya Etingof 2018-07-08 12:59:49 +02:00 committed by GitHub
parent 5168479e42
commit a93241007b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 33 deletions

View File

@ -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:

View File

@ -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)

View File

@ -1 +0,0 @@
# This file is necessary to make this directory a package.

View File

@ -1 +0,0 @@
# This file is necessary to make this directory a package.

View File

@ -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 *

View File

@ -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 *

View File

@ -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

View File

@ -100,8 +100,6 @@ params.update({
'pysnmp.smi.mibs',
'pysnmp.smi.mibs.instances',
'pysnmp.carrier',
'pysnmp.carrier.asynsock',
'pysnmp.carrier.asynsock.dgram',
'pysnmp.carrier.asyncore',
'pysnmp.carrier.asyncore.dgram',
'pysnmp.carrier.twisted',