summaryrefslogtreecommitdiff
path: root/examples/v3arch/asyncore/agent
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-03-30 23:29:55 +0200
committerIlya Etingof <etingof@gmail.com>2016-03-30 23:29:55 +0200
commit8e655f46e39b78290818345bb07e98dbe7b063b9 (patch)
treeb4053b17e0df7eac0b84a7f21314f24ded43ea95 /examples/v3arch/asyncore/agent
parent39dac83818d73bdb78e47b005903a86966bd1f55 (diff)
downloadpysnmp-git-8e655f46e39b78290818345bb07e98dbe7b063b9.tar.gz
pep8 fixes
Diffstat (limited to 'examples/v3arch/asyncore/agent')
-rw-r--r--examples/v3arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py1
-rw-r--r--examples/v3arch/asyncore/agent/cmdrsp/observe-request-processing.py1
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py1
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py1
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py1
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v2c-inform.py1
-rw-r--r--examples/v3arch/asyncore/agent/ntforg/v2c-trap.py1
7 files changed, 7 insertions, 0 deletions
diff --git a/examples/v3arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py b/examples/v3arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py
index 196ee9c2..24d76d35 100644
--- a/examples/v3arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py
+++ b/examples/v3arch/asyncore/agent/cmdrsp/implementing-scalar-mib-objects.py
@@ -54,6 +54,7 @@ MibScalar, MibScalarInstance = mibBuilder.importSymbols(
)
class MyStaticMibScalarInstance(MibScalarInstance):
+ # noinspection PyUnusedLocal,PyUnusedLocal
def getValue(self, name, idx):
return self.getSyntax().clone(
'Python %s running on a %s platform' % (sys.version, sys.platform)
diff --git a/examples/v3arch/asyncore/agent/cmdrsp/observe-request-processing.py b/examples/v3arch/asyncore/agent/cmdrsp/observe-request-processing.py
index d03c52c1..06b5b563 100644
--- a/examples/v3arch/asyncore/agent/cmdrsp/observe-request-processing.py
+++ b/examples/v3arch/asyncore/agent/cmdrsp/observe-request-processing.py
@@ -31,6 +31,7 @@ snmpEngine = engine.SnmpEngine()
# Register a callback to be invoked at specified execution point of
# SNMP Engine and passed local variables at code point's local scope
+# noinspection PyUnusedLocal,PyUnusedLocal
def requestObserver(snmpEngine, execpoint, variables, cbCtx):
print('Execution point: %s' % execpoint)
print('* transportDomain: %s' % '.'.join([str(x) for x in variables['transportDomain']]))
diff --git a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
index 237b8e0e..e316e674 100644
--- a/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
+++ b/examples/v3arch/asyncore/agent/ntforg/multiple-different-notifications-at-once.py
@@ -88,6 +88,7 @@ config.addVacmUser(snmpEngine, 3, 'usr-md5-none', 'authNoPriv', (), (), (1,3,6))
ntfOrg = ntforg.NotificationOriginator()
# Error/confirmation receiver
+# noinspection PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal
def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
print('Notification %s, status - %s' % (
diff --git a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
index 150b7dfc..5df87e80 100644
--- a/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
+++ b/examples/v3arch/asyncore/agent/ntforg/send-custom-pdu.py
@@ -67,6 +67,7 @@ v2c.apiTrapPDU.setVarBinds(
ntfOrg = ntforg.NotificationOriginator()
# Error/confirmation receiver
+# noinspection PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal
def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
print('Notification %s, status - %s' % (
diff --git a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
index 66d0a040..904aafe0 100644
--- a/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
+++ b/examples/v3arch/asyncore/agent/ntforg/usm-md5-none.py
@@ -64,6 +64,7 @@ config.addVacmUser(snmpEngine, 3, 'usr-md5-none', 'authNoPriv', (), (), (1,3,6))
ntfOrg = ntforg.NotificationOriginator()
# Error/confirmation receiver
+# noinspection PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal
def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
print('Notification %s, status - %s' % (
diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py b/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py
index 4e02f71b..8c3c90b4 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v2c-inform.py
@@ -66,6 +66,7 @@ config.addVacmUser(snmpEngine, 2, 'my-area', 'noAuthNoPriv', (), (), (1,3,6))
ntfOrg = ntforg.NotificationOriginator()
# Error/confirmation receiver
+# noinspection PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal
def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
print('Notification %s, status - %s' % (
diff --git a/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py b/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py
index 91fcaf7f..b2ecfa9b 100644
--- a/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py
+++ b/examples/v3arch/asyncore/agent/ntforg/v2c-trap.py
@@ -65,6 +65,7 @@ config.addVacmUser(snmpEngine, 2, 'my-area', 'noAuthNoPriv', (), (), (1,3,6))
ntfOrg = ntforg.NotificationOriginator()
# Error/confirmation receiver
+# noinspection PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal,PyUnusedLocal
def cbFun(snmpEngine, sendRequestHandle, errorIndication,
errorStatus, errorIndex, varBinds, cbCtx):
print('Notification %s, status - %s' % (