Skip to content

Commit 9276041

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents d3a9b93 + 65c3356 commit 9276041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ The main function is ``pretty_print``:
111111
"""Pretty print ASN.1 data."""
112112
while not input_stream.eof():
113113
tag = input_stream.peek()
114-
if tag.typ == asn1.TypePrimitive:
114+
if tag.typ == asn1.Types.Primitive:
115115
tag, value = input_stream.read()
116116
output_stream.write(' ' * indent)
117117
output_stream.write('[{}] {}: {}\n'.format(class_id_to_string(tag.cls),
118118
tag_id_to_string(tag.nr), value_to_string(tag.nr, value)))
119-
elif tag.typ == asn1.TypeConstructed:
119+
elif tag.typ == asn1.Types.Constructed:
120120
output_stream.write(' ' * indent)
121121
output_stream.write('[{}] {}\n'.format(class_id_to_string(tag.cls),
122122
tag_id_to_string(tag.nr)))

0 commit comments

Comments
 (0)