simplify comparisons
This commit is contained in:
parent
2ea9d32984
commit
cae970e65c
@ -176,9 +176,7 @@ def read_elements(stream: IO[bytes]) -> list[Element]:
|
|||||||
data.append(Box.read(stream))
|
data.append(Box.read(stream))
|
||||||
elif tag == TEXT.tag:
|
elif tag == TEXT.tag:
|
||||||
data.append(Text.read(stream))
|
data.append(Text.read(stream))
|
||||||
elif tag == SREF.tag:
|
elif tag in (SREF.tag, AREF.tag):
|
||||||
data.append(Reference.read(stream))
|
|
||||||
elif tag == AREF.tag:
|
|
||||||
data.append(Reference.read(stream))
|
data.append(Reference.read(stream))
|
||||||
else:
|
else:
|
||||||
# don't care, skip
|
# don't care, skip
|
||||||
|
Loading…
Reference in New Issue
Block a user