Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3931,7 +3931,7 @@ def delete_pages(self, *args, **kw):
else:
r = args[0]
if type(r) is int:
numbers = (r,)
return self.delete_page(r)
Comment thread
JorjMcKie marked this conversation as resolved.
else:
numbers = tuple(r)

Expand Down
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4369,7 +4369,7 @@ def remove_hidden(cont_lines):
found_redacts = False
for annot in page.annots():
if annot.type[0] == mupdf.PDF_ANNOT_FILE_ATTACHMENT and attached_files:
annot.update_file(buffer=b" ") # set file content to empty
annot.update_file(buffer_=b" ") # set file content to empty
if reset_responses:
annot.delete_responses()
if annot.type[0] == pymupdf.PDF_ANNOT_REDACT: # pylint: disable=no-member
Expand Down