We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29e7eb9 commit 4fa09e6Copy full SHA for 4fa09e6
pypdf/_page.py
@@ -644,13 +644,11 @@ def _content_stream_rename(
644
stream = ContentStream(stream, pdf)
645
for operands, _operator in stream.operations:
646
if isinstance(operands, list):
647
- for i in range(len(operands)):
648
- op = operands[i]
+ for i, op in enumerate(operands):
649
if isinstance(op, NameObject):
650
operands[i] = rename.get(op, op)
651
elif isinstance(operands, dict):
652
- for i in operands:
653
+ for i, op in operands.items():
654
655
656
else:
0 commit comments