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

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

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 2 months 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