Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Charon/filetypes/OpenPackagingConvention.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def getStream(self, virtual_path: str) -> IO[bytes]:

self._last_open_path = virtual_path
try: # If it happens to match some existing PNG file, we have to rescale that file and return the result.
self._last_open_stream = self._zipfile.open(virtual_path, self._mode.value)
self._last_open_stream = self._zipfile.open(virtual_path, self._mode.value, force_zip64=True)
except RuntimeError: # Python 3.5 and before couldn't open resources in the archive in write mode.
self._last_open_stream = BytesIO()
self._open_bytes_streams[virtual_path] = self._last_open_stream # Save this for flushing later.
Expand Down
Loading