Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: client/third_party/pyasn1-modules/pyasn1_modules/rfc1901.py

Issue 2471063002: swarming: Package ts_mon python library (and dependencies) in bot code. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # SNMPv2c message syntax
3 #
4 # ASN.1 source from:
5 # http://www.ietf.org/rfc/rfc1901.txt
6 #
7 from pyasn1.type import univ, namedtype, namedval
8
9 class Message(univ.Sequence):
10 componentType = namedtype.NamedTypes(
11 namedtype.NamedType('version', univ.Integer(namedValues = namedval.Named Values(('version-2c', 1)))),
12 namedtype.NamedType('community', univ.OctetString()),
13 namedtype.NamedType('data', univ.Any())
14 )
15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698