Skip to content

Commit

Permalink
DEP: Remove deprecated code (#2367)
Browse files Browse the repository at this point in the history
Also don't use a default for the deprecation functions: If the version is mentioned explicitly with every call, we can
more easily search for it.

Bookmarks: `MAINT: Consistent terminology for outline items` (#1156, pypdf==2.9.0) introduced it. Meaning in pypdf==4.0.0 we can remove them
  • Loading branch information
MartinThoma authored Dec 25, 2023
1 parent 5ea40d6 commit eb3e22d
Show file tree
Hide file tree
Showing 19 changed files with 152 additions and 2,309 deletions.
9 changes: 3 additions & 6 deletions pypdf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

from ._crypt_providers import crypt_provider
from ._encryption import PasswordType
from ._merger import PdfFileMerger, PdfMerger
from ._merger import PdfMerger
from ._page import PageObject, Transformation, mult
from ._reader import DocumentInformation, PdfFileReader, PdfReader
from ._reader import DocumentInformation, PdfReader
from ._version import __version__
from ._writer import ObjectDeletionFlag, PdfFileWriter, PdfWriter
from ._writer import ObjectDeletionFlag, PdfWriter
from .constants import ImageType
from .pagerange import PageRange, parse_filename_page_ranges
from .papersizes import PaperSize
Expand All @@ -39,9 +39,6 @@
"DocumentInformation",
"ObjectDeletionFlag",
"parse_filename_page_ranges",
"PdfFileMerger", # will be removed in pypdf==4.0.0; use PdfMerger instead
"PdfFileReader", # will be removed in pypdf==4.0.0; use PdfReader instead
"PdfFileWriter", # will be removed in pypdf==4.0.0; use PdfWriter instead
"PdfMerger",
"PdfReader",
"PdfWriter",
Expand Down
Loading

0 comments on commit eb3e22d

Please sign in to comment.