Skip to content

Commit

Permalink
Fixed zipfile not taking 'rb' but 'r' on some implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Oct 17, 2023
1 parent e8ad36e commit da12adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def install_libsodium() -> None:
import zipfile
fr = zipfile.Path("libsodium.zip", "libsodium/x64/Release/")
fr = sorted((d for d in fr.iterdir()), key=lambda x: str(x))[-1] / "dynamic" / "libsodium.dll"
with fr.open(mode="rb") as stream_fr, open("libsodium.dll", "wb") as fw:
with fr.open(mode="r") as stream_fr, open("libsodium.dll", "wb") as fw:
fw.write(stream_fr.read())


Expand Down

0 comments on commit da12adc

Please sign in to comment.