Skip to content

Commit

Permalink
Now using memory view for download_files
Browse files Browse the repository at this point in the history
  • Loading branch information
mindstorm38 committed Apr 1, 2023
1 parent 91d3c85 commit 6d1c69b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/portablemc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,8 @@ def download_files(self, *, progress_callback: 'Optional[Callable[[DownloadProgr

if len(self.entries):

buffer = bytearray(65536)
buffer_back = bytearray(65536)
buffer = memoryview(buffer_back)
total_size = 0

if progress_callback is not None:
Expand Down

0 comments on commit 6d1c69b

Please sign in to comment.