diff options
author | Ilya Etingof <etingof@gmail.com> | 2016-04-02 23:43:14 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2016-04-02 23:43:14 +0200 |
commit | 90bbf397ad3dd49db7f83d541afff51f17e63054 (patch) | |
tree | 9f77e3ee610241978873484f83702d9b3c056d9e /pysnmp/proto/rfc1905.py | |
parent | fbc9c2679bd04ea3241b294e78e1b66fe993d952 (diff) | |
download | pysnmp-git-90bbf397ad3dd49db7f83d541afff51f17e63054.tar.gz |
pep8 reformatted
Diffstat (limited to 'pysnmp/proto/rfc1905.py')
-rw-r--r-- | pysnmp/proto/rfc1905.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pysnmp/proto/rfc1905.py b/pysnmp/proto/rfc1905.py index b8189a3f..0b7136a8 100644 --- a/pysnmp/proto/rfc1905.py +++ b/pysnmp/proto/rfc1905.py @@ -72,26 +72,26 @@ class VarBindList(univ.SequenceOf): 0, max_bindings ) -_errorStatus = univ.Integer(namedValues=namedval.NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))) +errorStatus = univ.Integer(namedValues=namedval.NamedValues(('noError', 0), ('tooBig', 1), ('noSuchName', 2), ('badValue', 3), ('readOnly', 4), ('genErr', 5), ('noAccess', 6), ('wrongType', 7), ('wrongLength', 8), ('wrongEncoding', 9), ('wrongValue', 10), ('noCreation', 11), ('inconsistentValue', 12), ('resourceUnavailable', 13), ('commitFailed', 14), ('undoFailed', 15), ('authorizationError', 16), ('notWritable', 17), ('inconsistentName', 18))) # Base class for a non-bulk PDU class PDU(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('request-id', rfc1902.Integer32()), - namedtype.NamedType('error-status', _errorStatus), + namedtype.NamedType('error-status', errorStatus), namedtype.NamedType('error-index', univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, max_bindings))), namedtype.NamedType('variable-bindings', VarBindList()) ) -_nonRepeaters = univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, max_bindings)) -_maxRepetitions = univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, max_bindings)) +nonRepeaters = univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, max_bindings)) +maxRepetitions = univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, max_bindings)) # Base class for bulk PDU class BulkPDU(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('request-id', rfc1902.Integer32()), - namedtype.NamedType('non-repeaters', _nonRepeaters), - namedtype.NamedType('max-repetitions', _maxRepetitions), + namedtype.NamedType('non-repeaters', nonRepeaters), + namedtype.NamedType('max-repetitions', maxRepetitions), namedtype.NamedType('variable-bindings', VarBindList()) ) |