$NetBSD: patch-pyPdf_pdf.py,v 1.3 2019/07/29 20:39:39 joerg Exp $ python-3.x compatibility. When renaming resources, make sure that the new name is actually new. Preserve annotations on page merge. --- pyPdf/pdf.py.orig 2010-12-04 22:49:56.000000000 +0000 +++ pyPdf/pdf.py @@ -652,7 +652,7 @@ class PdfFileReader(object): if not self._override_encryption and self.isEncrypted: # if we don't have the encryption key: if not hasattr(self, '_decryption_key'): - raise Exception, "file has not been decrypted" + raise Exception("file has not been decrypted") # otherwise, decrypt here... import struct pack1 = struct.pack("