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 everywhere for read_until_regex
This was initially motivated by `NumberObject.read_from_stream`, which was calling `read_until_regex` with the default value of `ignore_eof=False` and thus raising exceptions like: ``` PyPDF2.errors.PdfStreamError: Stream has ended unexpectedly ``` 431ba70 demonstrates a similar fix for `NameObject.read_from_stream`. From discussion in #1505, it was realized that the change to `NumberObject.read_from_stream` had now made ALL callers of `read_until_regex` pass `ignore_eof=True`. It's cleaner to remove the parameter entirely and change the default behaviour.
- Loading branch information