summaryrefslogtreecommitdiff
path: root/pysnmp/hlapi/asyncore/_sync/compat/ntforg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/hlapi/asyncore/_sync/compat/ntforg.py')
-rw-r--r--pysnmp/hlapi/asyncore/_sync/compat/ntforg.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/pysnmp/hlapi/asyncore/_sync/compat/ntforg.py b/pysnmp/hlapi/asyncore/_sync/compat/ntforg.py
index 420b3b6..92b32b3 100644
--- a/pysnmp/hlapi/asyncore/_sync/compat/ntforg.py
+++ b/pysnmp/hlapi/asyncore/_sync/compat/ntforg.py
@@ -1,7 +1,7 @@
#
# This is a Python 2.6- version of the same file at level up
#
-from pysnmp.hlapi.asyncore.ntforg import *
+from pysnmp.hlapi.asyncore import ntforg
__all__ = ['sendNotification', 'next']
@@ -25,17 +25,15 @@ def sendNotification(snmpEngine, authData, transportTarget, contextData,
cbCtx = {}
- ntfOrg = AsyncNotificationOriginator()
-
if varBinds:
- ntfOrg.sendNotification(
+ ntforg.sendNotification(
snmpEngine,
authData,
transportTarget,
contextData,
notifyType,
varBinds,
- (cbFun, cbCtx),
+ cbFun, cbCtx,
options.get('lookupMib', True)
)