Skip to content

Commit c2e3271

Browse files
committed
Minor changes
Address 4590 and 4462
1 parent dfd8b64 commit c2e3271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3931,7 +3931,7 @@ def delete_pages(self, *args, **kw):
39313931
else:
39323932
r = args[0]
39333933
if type(r) is int:
3934-
numbers = (r,)
3934+
return self.delete_page(r)
39353935
else:
39363936
numbers = tuple(r)
39373937

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4369,7 +4369,7 @@ def remove_hidden(cont_lines):
43694369
found_redacts = False
43704370
for annot in page.annots():
43714371
if annot.type[0] == mupdf.PDF_ANNOT_FILE_ATTACHMENT and attached_files:
4372-
annot.update_file(buffer=b" ") # set file content to empty
4372+
annot.update_file(buffer_=b" ") # set file content to empty
43734373
if reset_responses:
43744374
annot.delete_responses()
43754375
if annot.type[0] == pymupdf.PDF_ANNOT_REDACT: # pylint: disable=no-member

0 commit comments

Comments
 (0)