diff options
Diffstat (limited to 'pysnmp/hlapi/asyncore/_sync/ntforg.py')
-rw-r--r-- | pysnmp/hlapi/asyncore/_sync/ntforg.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pysnmp/hlapi/asyncore/_sync/ntforg.py b/pysnmp/hlapi/asyncore/_sync/ntforg.py index ac778c1..e43a974 100644 --- a/pysnmp/hlapi/asyncore/_sync/ntforg.py +++ b/pysnmp/hlapi/asyncore/_sync/ntforg.py @@ -1,4 +1,4 @@ -from pysnmp.hlapi.asyncore.ntforg import * +from pysnmp.hlapi.asyncore import ntforg __all__ = ['sendNotification'] @@ -93,18 +93,16 @@ def sendNotification(snmpEngine, authData, transportTarget, contextData, cbCtx = {} - ntfOrg = AsyncNotificationOriginator() - while True: if varBinds: - ntfOrg.sendNotification( + ntforg.sendNotification( snmpEngine, authData, transportTarget, contextData, notifyType, varBinds, - cbInfo=(cbFun, cbCtx), + cbFun, cbCtx, lookupMib=options.get('lookupMib', True) ) |