gentoo/dev-python/stapler/files/stapler-1.0.0_p20220330-fix-tests-for-PyPDF2-2.x.patch
Ben Kohler ba04da63dc
dev-python/stapler: support PyPDF2-3.0.0 & misc fixes
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
2022-12-28 12:01:13 -06:00

14 lines
317 B
Diff

diff --git a/staplelib/tests.py b/staplelib/tests.py
index 4d59153..447d48a 100755
--- a/staplelib/tests.py
+++ b/staplelib/tests.py
@@ -5,7 +5,7 @@ import shutil
import tempfile
import unittest
-from PyPDF2.pdf import PdfFileReader
+from PyPDF2 import PdfFileReader
from staplelib import main, CommandError