Skip to content

Commit

Permalink
DEP: Update to deprecation_no_replacement
Browse files Browse the repository at this point in the history
Change deprecate_no_replacement to deprecation_no_replacement.
  • Loading branch information
j-t-1 authored Nov 15, 2024
1 parent 66089ac commit e2a2d2a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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 All @@ -29,5 +29,4 @@ def write_to_stream(
stream.write(b" ")
value = self.dest_array
value.write_to_stream(stream)
stream.write(b"\n")
stream.write(b">>")
stream.write(b"\n>>")

0 comments on commit e2a2d2a

Please sign in to comment.