Skip to content

Commit

Permalink
STY: Fix typo "steam" → "stream" (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 committed Dec 6, 2023
1 parent 98e476a commit 250b2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/generic/_data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def get_next_obj_pos(
else:
return get_next_obj_pos(p, p1, rem_gens[1:], pdf)

def read_unsized_from_steam(
def read_unsized_from_stream(
stream: StreamType, pdf: PdfReaderProtocol
) -> bytes:
# we are just pointing at beginning of the stream
Expand Down Expand Up @@ -535,7 +535,7 @@ def read_unsized_from_steam(
data["__streamdata__"] = data["__streamdata__"][:-1]
elif pdf is not None and not pdf.strict:
stream.seek(pstart, 0)
data["__streamdata__"] = read_unsized_from_steam(stream, pdf)
data["__streamdata__"] = read_unsized_from_stream(stream, pdf)
pos = stream.tell()
else:
stream.seek(pos, 0)
Expand Down

0 comments on commit 250b2f9

Please sign in to comment.