Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PI: Don't load entire file into memory when passed file name
This halves allocated memory when doing a simple PdfWriter(clone_from=«str») I can't just close the self.stream in `__del__` because for some strange reason the unit tests mark it as unflagged even after the test block ends. Something about `__del__` finalizers being run on a second pass while `weakref.finalize()` is run on the first pass.
- Loading branch information