$NetBSD: patch-pyPdf_pdf.py,v 1.1 2014/01/23 14:38:42 wiz Exp $ python-3.x compatibility. --- 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("