Skip to content

Commit

Permalink
Fixed imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Sep 23, 2024
1 parent 226417a commit 1ad706a
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/hlapi/v3arch/asyncio/agent/ntforg/send-trap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run():
Expand Down
2 changes: 1 addition & 1 deletion examples/hlapi/v3arch/asyncio/agent/ntforg/v3-inform.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" #

import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
""" #
import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
""" #
import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run_snmp_get():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
""" #
import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run_snmp_get():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
| $ snmpget -v3 -l authPriv -u usr-sha-aes -A authkey1 -X privkey1 -a SHA -x AES demo.pysnmp.com SNMPv2-MIB::sysDescr.0
""" #
import asyncio
from pysnmp.hlapi.asyncio import *
from pysnmp.hlapi.v3arch.asyncio import *


async def run():
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/hlapi/v1arch/asyncio/cmdgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ async def nextCmd(
Examples
--------
>>> import asyncio
>>> from pysnmp.hlapi.asyncio import *
>>> from pysnmp.hlapi.v1arch.asyncio import *
>>>
>>> async def run():
... errorIndication, errorStatus, errorIndex, varBinds = await nextCmd(
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/hlapi/v1arch/asyncio/ntforg.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class instances (if `lookupMib` is `True`) representing MIB variables
Examples
--------
>>> import asyncio
>>> from pysnmp.hlapi.asyncio import *
>>> from pysnmp.hlapi.v1arch.asyncio import *
>>>
>>> async def run():
... errorIndication, errorStatus, errorIndex, varBinds = await sendNotification(
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/hlapi/v1arch/asyncio/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class instance.
Examples
--------
>>> from pysnmp.hlapi.asyncio import Udp6TransportTarget
>>> from pysnmp.hlapi.v1arch.asyncio import Udp6TransportTarget
>>> await Udp6TransportTarget.create(('google.com', 161))
Udp6TransportTarget(('2a00:1450:4014:80a::100e', 161), timeout=1, retries=5, tagList='')
>>> await Udp6TransportTarget.create(('FEDC:BA98:7654:3210:FEDC:BA98:7654:3210', 161))
Expand Down
2 changes: 1 addition & 1 deletion pysnmp/smi/rfc1902.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ class instance representing MIB browsing functionality.
Examples
--------
>>> from pysmi.hlapi.asyncio import varbinds
>>> from pysmi.hlapi.v3arch.asyncio import varbinds
>>> mibViewController = varbinds.MibViewControllerManager.getMibViewController(engine.cache)
>>> objectType = ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysDescr'), 'Linux i386')
>>> objectType.resolveWithMib(mibViewController)
Expand Down

0 comments on commit 1ad706a

Please sign in to comment.