simplify comparisons

This commit is contained in:
Jan Petykiewicz 2024-07-28 23:20:32 -07:00
parent 2ea9d32984
commit cae970e65c

View File

@ -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