We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3a9b93 + 65c3356 commit 9276041Copy full SHA for 9276041
docs/examples.rst
@@ -111,12 +111,12 @@ The main function is ``pretty_print``:
111
"""Pretty print ASN.1 data."""
112
while not input_stream.eof():
113
tag = input_stream.peek()
114
- if tag.typ == asn1.TypePrimitive:
+ if tag.typ == asn1.Types.Primitive:
115
tag, value = input_stream.read()
116
output_stream.write(' ' * indent)
117
output_stream.write('[{}] {}: {}\n'.format(class_id_to_string(tag.cls),
118
tag_id_to_string(tag.nr), value_to_string(tag.nr, value)))
119
- elif tag.typ == asn1.TypeConstructed:
+ elif tag.typ == asn1.Types.Constructed:
120
121
output_stream.write('[{}] {}\n'.format(class_id_to_string(tag.cls),
122
tag_id_to_string(tag.nr)))
0 commit comments