/usr/lib/python3/dist-packages/pysnmp/proto/rfc1901.py is in python3-pysnmp4 4.2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from pyasn1.type import univ, namedtype, namedval
from pysnmp.proto import rfc1905
_version = univ.Integer(namedValues = namedval.NamedValues(('version-2c', 1)))
class Message(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('version', _version),
namedtype.NamedType('community', univ.OctetString()),
namedtype.NamedType('data', rfc1905.PDUs())
)
|