Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 4, 2024
1 parent 984c2e7 commit 71b8d99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PIL/PdfParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ def __delitem__(self, key):
elif key in self.deleted_entries:
generation = self.deleted_entries[key]
else:
msg = (
f"object ID {key} cannot be deleted because it doesn't exist"
)
msg = f"object ID {key} cannot be deleted because it doesn't exist"

Check warning on line 147 in src/PIL/PdfParser.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/PdfParser.py#L147

Added line #L147 was not covered by tests
raise IndexError(msg)

def __contains__(self, key):
Expand Down

0 comments on commit 71b8d99

Please sign in to comment.