Skip to content

Commit

Permalink
DEP: Update to deprecation_no_replacement (#2943)
Browse files Browse the repository at this point in the history
When we moved to 5.0.0 the deprecate line was not updated.
  • Loading branch information
j-t-1 authored Nov 15, 2024
1 parent c855be0 commit 03f7140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/generic/_outline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Union

from .._utils import StreamType, deprecate_no_replacement
from .._utils import StreamType, deprecation_no_replacement
from ._base import NameObject
from ._data_structures import Destination

Expand All @@ -10,7 +10,7 @@ def write_to_stream(
self, stream: StreamType, encryption_key: Union[None, str, bytes] = None
) -> None:
if encryption_key is not None: # deprecated
deprecate_no_replacement(
deprecation_no_replacement(
"the encryption_key parameter of write_to_stream", "5.0.0"
)
stream.write(b"<<\n")
Expand Down

0 comments on commit 03f7140

Please sign in to comment.