diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-06 00:10:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-06 00:10:03 +0000 |
commit | b256b4b120d8269d4415eac0c354eb603a7bf953 (patch) | |
tree | 4a034d19dc148353dd4ed6094848d51387f8b07e /dev-python/stapler/files | |
parent | 8973f70e9a2ae4ea8a324e607ea1e8b96c7ff384 (diff) |
gentoo auto-resync : 06:01:2023 - 00:10:03
Diffstat (limited to 'dev-python/stapler/files')
-rw-r--r-- | dev-python/stapler/files/stapler-1.0.0_p20220330-PyPDF2-to-pypdf.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/stapler/files/stapler-1.0.0_p20220330-PyPDF2-to-pypdf.patch b/dev-python/stapler/files/stapler-1.0.0_p20220330-PyPDF2-to-pypdf.patch new file mode 100644 index 000000000000..e82005743c90 --- /dev/null +++ b/dev-python/stapler/files/stapler-1.0.0_p20220330-PyPDF2-to-pypdf.patch @@ -0,0 +1,39 @@ +diff --git a/staplelib/commands.py b/staplelib/commands.py +index caf75f9..e67f419 100644 +--- a/staplelib/commands.py ++++ b/staplelib/commands.py +@@ -4,7 +4,7 @@ import math + import os + + try: +- from PyPDF2 import PdfWriter, PdfReader ++ from pypdf import PdfWriter, PdfReader + except: + from pyPdf import PdfWriter, PdfReader + +diff --git a/staplelib/iohelper.py b/staplelib/iohelper.py +index 8df365c..5474898 100644 +--- a/staplelib/iohelper.py ++++ b/staplelib/iohelper.py +@@ -7,7 +7,7 @@ import re + import sys + + try: +- from PyPDF2 import PdfWriter, PdfReader ++ from pypdf import PdfWriter, PdfReader + except ImportError: + from pyPdf import PdfWriter, PdfReader + +diff --git a/staplelib/tests.py b/staplelib/tests.py +index 86db178..423406d 100755 +--- a/staplelib/tests.py ++++ b/staplelib/tests.py +@@ -5,7 +5,7 @@ import shutil + import tempfile + import unittest + +-from PyPDF2 import PdfReader ++from pypdf import PdfReader + + from staplelib import main, CommandError + |