Upgrading PyPDF2 to pypdf.

This commit is contained in:
Roland 2023-07-11 17:07:34 -06:00
parent 7bba6555ca
commit e1920d1c0b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
Pillow==9.5.0
Pint==0.21
PyPDF2[crypto]==3.0.1
pypdf==3.12.1
PyYAML==6.0
SQLAlchemy[asyncio]==1.3.22
aiohttp==3.8.4

View file

@ -11,7 +11,7 @@ from wrolpi.files.models import FileGroup
from wrolpi.vars import FILE_MAX_PDF_SIZE, PYTEST, FILE_MAX_TEXT_SIZE
try:
from PyPDF2 import PdfReader
from pypdf import PdfReader
except ImportError:
PdfReader = None