summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorelie <elie>2015-09-21 18:35:05 +0000
committerelie <elie>2015-09-21 18:35:05 +0000
commitb0fd0d6dea9a255645e36f54846de2c8f53bde82 (patch)
treefefb517657cc8da5b96f6f0bec46b1801b1a3785 /examples
parenta0d0d36ca6a0f0852cea4242de559f957f5c0e35 (diff)
downloadpysnmp-git-b0fd0d6dea9a255645e36f54846de2c8f53bde82.tar.gz
post-move documentation and code fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py2
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py b/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
index d14380b6..e2cacbeb 100644
--- a/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/multiple-informs-at-once.py
@@ -40,7 +40,7 @@ def cbFun(snmpEngine, sendRequestHandle, errorIndication,
for name, val in varBinds:
print('%s = %s' % (name.prettyPrint(), val.prettyPrint()))
-snmpEngine = engine.SnmpEngine()
+snmpEngine = SnmpEngine()
ntfOrg = AsyncNotificationOriginator()
diff --git a/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py b/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
index 7028d840..9df9dafb 100644
--- a/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/running-multiple-snmp-engines-at-once.py
@@ -62,10 +62,10 @@ transportDispatcher.registerRoutingCbFun(
lambda td,ta,d: ta[1] % 3 and 'A' or 'B'
)
-snmpEngineA = engine.SnmpEngine()
+snmpEngineA = SnmpEngine()
snmpEngineA.registerTransportDispatcher(transportDispatcher, 'A')
-snmpEngineB = engine.SnmpEngine()
+snmpEngineB = SnmpEngine()
snmpEngineB.registerTransportDispatcher(transportDispatcher, 'B')
ntfOrg = AsyncNotificationOriginator()