mirror of
https://github.com/novoid/guess-filename.py.git
synced 2026-02-16 13:24:15 +00:00
Switched from PyPDF2 to pypdf (deprecation warning)
This commit is contained in:
parent
3c0375abd4
commit
3c60fd1752
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
PROG_VERSION = u"Time-stamp: <2023-01-13 19:02:41 vk>"
|
PROG_VERSION = u"Time-stamp: <2023-03-05 22:13:16 vk>"
|
||||||
|
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
|
|
@ -31,9 +31,9 @@ except ImportError:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import PyPDF2
|
import pypdf
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print("Could not find Python module \"PyPDF2\".\nPlease install it, e.g., with \"sudo pip install PyPDF2\".")
|
print("Could not find Python module \"pypdf\".\nPlease install it, e.g., with \"sudo pip install pypdf\".")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
PROG_VERSION_DATE = PROG_VERSION[13:23]
|
PROG_VERSION_DATE = PROG_VERSION[13:23]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue