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
commit1dc2e64a4a0a52a7e9ed3b07a01dd35a0aa29c95 (patch)
tree7ba4a69a759c1b42194a6f58dd9bc210442a4ed4 /examples
parent66b54b016bec3312059f0add5dcc8535d2a1a6c6 (diff)
downloadpysnmp-1dc2e64a4a0a52a7e9ed3b07a01dd35a0aa29c95.tar.gz
post-move documentation and code fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py2
-rw-r--r--examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py b/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py
index d14380b..e2cacbe 100644
--- a/examples/hlapi/asyncore/agent/ntforg/async-multiple-informs-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/async-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/async-running-multiple-snmp-engines-at-once.py b/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py
index 7028d84..9df9daf 100644
--- a/examples/hlapi/asyncore/agent/ntforg/async-running-multiple-snmp-engines-at-once.py
+++ b/examples/hlapi/asyncore/agent/ntforg/async-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()