Package: bookletimposer / 0.2-5

Migrate-from-pyPdf-to-PyPDF2.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: intrigeri <intrigeri@boum.org>
Date: Mon, 6 Jun 2016 10:14:36 +0000
Subject: Migrate from pyPdf to PyPDF2.

---
 lib/pdfimposer.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/pdfimposer.py b/lib/pdfimposer.py
index 2da6cbe..edc989d 100644
--- a/lib/pdfimposer.py
+++ b/lib/pdfimposer.py
@@ -53,9 +53,7 @@ import sys
 import os
 import types
 
-import pyPdf
-import pyPdf.generic
-import pyPdf.pdf
+import PyPDF2 as pyPdf
 
 # XXX: Fix these translatable strings
 try:
diff --git a/setup.py b/setup.py
index e3461a7..e898be1 100755
--- a/setup.py
+++ b/setup.py
@@ -112,7 +112,7 @@ It allows:
                   ('share/applications', ['data/bookletimposer.desktop']),
                   ('share/doc/bookletimposer', ['README']),
                   ],
-      requires = ['gtk', 'pyPdf (>0.12)'],
+      requires = ['gtk', 'PyPDF2'],
       cmdclass = { "build" :            build_extra.build_extra,
                    "build_uiheaders" :  build_uiheaders,
                    "build_i18n" :       build_i18n.build_i18n,