Commit 82b30613 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

Hack: add compatibility symbols for pypdf that might be in database

parent 550a5855
...@@ -117,3 +117,13 @@ def initialize( context ): ...@@ -117,3 +117,13 @@ def initialize( context ):
# backward compatibility names # backward compatibility names
XML = None XML = None
UI = None UI = None
try:
import pyPdf
except ImportError:
class pyPdfGeneric:
NameObject = type('NameObject', (str, ), {'__module__': 'pyPdf.Generic'})
sys.modules['pyPdf.Generic'] = pyPdfGeneric
sys.modules['pyPdf'] = pyPdfGeneric
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment