Skip to content

Commit

Permalink
fixup! PI: Don't load entire file into memory when passed file name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsir911 committed Mar 15, 2024
1 parent e34b088 commit d9e673e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pypdf/_reader.py
Expand Up @@ -346,7 +346,8 @@ def __init__(
elif password is not None:
raise PdfReadError("Not encrypted file")

def close(self):
def close(self) -> None:
"""Close the underlying file handle"""
self.stream.close()

@property
Expand Down

0 comments on commit d9e673e

Please sign in to comment.