Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROB: Ignore EOF in NumberObject.read_from_stream
Use `ignore_eof=True` just like `NameObject` does, which is the only other caller to `read_until_regex` in this module. This helps prevent arcane exceptions when trying to parse a number: ``` PyPDF2.errors.PdfStreamError: Stream has ended unexpectedly ``` The motivation is essentially identical to the change that introduced `ignore_eof=True` on `NameObject`s: 431ba70
- Loading branch information