We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76976b commit 7e1140dCopy full SHA for 7e1140d
pypdf/generic/_data_structures.py
@@ -1101,13 +1101,13 @@ def get_data(self) -> bytes:
1101
from ..filters import decode_stream_data # noqa: PLC0415
1102
1103
if self.decoded_self is not None:
1104
- # cached version of decoded object
+ # Cached version of decoded object
1105
return self.decoded_self.get_data()
1106
- # create decoded object
1107
- decoded = DecodedStreamObject()
1108
+ # Create decoded object
+ decoded = DecodedStreamObject()
1109
decoded.set_data(decode_stream_data(self))
1110
- for key, value in list(self.items()):
+ for key, value in self.items():
1111
if key not in (SA.LENGTH, SA.FILTER, SA.DECODE_PARMS):
1112
decoded[key] = value
1113
self.decoded_self = decoded
0 commit comments