Skip to content

Commit

Permalink
Remove deprecated version and identifier parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jul 10, 2024
1 parent bfe9716 commit 15a4625
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pydyf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,8 @@ def data(self):

class PDF:
"""PDF document."""
def __init__(self, version=None, identifier=None):
def __init__(self):
"""Create a PDF document."""
if version or identifier: # to be removed in next version
warn(
"PDF objects don’t take version or identifier during initialization "
"anymore. These properties are now stored but ignored, and will be "
"removed and rejected in next version of pydyf. Please pass these "
"properties to the PDF.write() method instead.", DeprecationWarning)
self.version = _to_bytes(version) if version else b'1.7' # to be removed
self.identifier = identifier # to be removed

#: Python :obj:`list` containing the PDF’s objects.
self.objects = []
Expand Down

0 comments on commit 15a4625

Please sign in to comment.