From 603440ebb813aada800389e4ec175219bfcb4501 Mon Sep 17 00:00:00 2001 From: "Jorj X. McKie" Date: Sat, 5 Jul 2025 08:37:27 -0400 Subject: [PATCH] Minor changes Address 4590 and 4462 --- src/__init__.py | 2 +- src/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index 65d88073f..8f9484a50 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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) else: numbers = tuple(r) diff --git a/src/utils.py b/src/utils.py index f4f45a0b9..cefa8a4dd 100644 --- a/src/utils.py +++ b/src/utils.py @@ -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