Skip to content

Commit 2cc52f2

Browse files
committed
a
1 parent 7384419 commit 2cc52f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sfnttools/utils/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def __init__(self, source: bytes | BinaryIO | None = None):
1313
source = BytesIO(source)
1414
self.source = source
1515

16-
def read(self, size: int) -> bytes:
16+
def read(self, size: int, ignore_eof: bool = False) -> bytes:
1717
values = self.source.read(size)
18-
if len(values) < size:
18+
if len(values) < size and not ignore_eof:
1919
raise EOFError()
2020
return values
2121

0 commit comments

Comments
 (0)