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))
|
||||
elif tag == TEXT.tag:
|
||||
data.append(Text.read(stream))
|
||||
elif tag == SREF.tag:
|
||||
data.append(Reference.read(stream))
|
||||
elif tag == AREF.tag:
|
||||
elif tag in (SREF.tag, AREF.tag):
|
||||
data.append(Reference.read(stream))
|
||||
else:
|
||||
# don't care, skip
|
||||
|
Loading…
Reference in New Issue
Block a user