From 053812fd10379e2eaec73f619ff7ac2836b97310 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Sat, 21 Sep 2024 23:32:20 -0400 Subject: [PATCH] Removed asyncore leftover. --- .../v3arch/asyncio/agent/cmdrsp/multiple-snmp-contexts.py | 2 +- pysnmp/hlapi/v1arch/asyncio/auth.py | 4 ++-- pysnmp/hlapi/v1arch/asyncio/cmdgen.py | 8 ++++---- pysnmp/hlapi/v1arch/asyncio/ntforg.py | 2 +- pysnmp/hlapi/v1arch/asyncio/transport.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/v3arch/asyncio/agent/cmdrsp/multiple-snmp-contexts.py b/examples/v3arch/asyncio/agent/cmdrsp/multiple-snmp-contexts.py index dc6c4c52..8c562adc 100644 --- a/examples/v3arch/asyncio/agent/cmdrsp/multiple-snmp-contexts.py +++ b/examples/v3arch/asyncio/agent/cmdrsp/multiple-snmp-contexts.py @@ -20,7 +20,7 @@ """ # from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import cmdrsp, context -from pysnmp.carrier.asyncore.dgram import udp +from pysnmp.carrier.asyncio.dgram import udp from pysnmp.smi import instrum, builder from pysnmp.proto.api import v2c diff --git a/pysnmp/hlapi/v1arch/asyncio/auth.py b/pysnmp/hlapi/v1arch/asyncio/auth.py index a79633e6..6c3edfff 100644 --- a/pysnmp/hlapi/v1arch/asyncio/auth.py +++ b/pysnmp/hlapi/v1arch/asyncio/auth.py @@ -12,8 +12,8 @@ class CommunityData: """Creates SNMP v1/v2c configuration entry. This object can be used by - :py:class:`~pysnmp.hlapi.v1arch.asyncore.AsyncCommandGenerator` or - :py:class:`~pysnmp.hlapi.v1arch.asyncore.AsyncNotificationOriginator` + :py:class:`~pysnmp.hlapi.v1arch.asyncio.AsyncCommandGenerator` or + :py:class:`~pysnmp.hlapi.v1arch.asyncio.AsyncNotificationOriginator` and their derivatives for conveying SNMP v1/v2c configuration. Parameters diff --git a/pysnmp/hlapi/v1arch/asyncio/cmdgen.py b/pysnmp/hlapi/v1arch/asyncio/cmdgen.py index 244ae716..d245c47c 100644 --- a/pysnmp/hlapi/v1arch/asyncio/cmdgen.py +++ b/pysnmp/hlapi/v1arch/asyncio/cmdgen.py @@ -47,7 +47,7 @@ async def getCmd( Parameters ---------- - snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatcher` + snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncio.SnmpDispatcher` Class instance representing asynio-based asynchronous event loop and associated state information. @@ -178,7 +178,7 @@ async def setCmd( Parameters ---------- - snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatcher` + snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncio.SnmpDispatcher` Class instance representing asynio-based asynchronous event loop and associated state information. @@ -309,7 +309,7 @@ async def nextCmd( Parameters ---------- - snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatcher` + snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncio.SnmpDispatcher` Class instance representing asynio-based asynchronous event loop and associated state information. @@ -459,7 +459,7 @@ async def bulkCmd( Parameters ---------- - snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatcher` + snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncio.SnmpDispatcher` Class instance representing asynio-based asynchronous event loop and associated state information. diff --git a/pysnmp/hlapi/v1arch/asyncio/ntforg.py b/pysnmp/hlapi/v1arch/asyncio/ntforg.py index 158dc5e6..01049b5c 100644 --- a/pysnmp/hlapi/v1arch/asyncio/ntforg.py +++ b/pysnmp/hlapi/v1arch/asyncio/ntforg.py @@ -39,7 +39,7 @@ async def sendNotification( Parameters ---------- - snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncore.SnmpDispatcher` + snmpDispatcher: :py:class:`~pysnmp.hlapi.v1arch.asyncio.SnmpDispatcher` Class instance representing asynio-based asynchronous event loop and associated state information. diff --git a/pysnmp/hlapi/v1arch/asyncio/transport.py b/pysnmp/hlapi/v1arch/asyncio/transport.py index 85be65ec..1cf0f23c 100644 --- a/pysnmp/hlapi/v1arch/asyncio/transport.py +++ b/pysnmp/hlapi/v1arch/asyncio/transport.py @@ -46,7 +46,7 @@ class instance. Examples -------- - >>> from pysnmp.hlapi.v1arch.asyncore import UdpTransportTarget + >>> from pysnmp.hlapi.v1arch.asyncio import UdpTransportTarget >>> await UdpTransportTarget.create(('demo.pysnmp.com', 161)) UdpTransportTarget(('195.218.195.228', 161), timeout=1, retries=5) >>>