This commit is contained in:
Ondrej Samohel 2021-03-31 21:50:07 +02:00
parent 52a5183b7b
commit 91e8bfc941
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -39,7 +39,7 @@ def sha256_sum(filename: Path):
"""
_hash = hashlib.sha256()
with open(filename, 'rb', buffering=0) as f:
buffer = bytearray(128*1024)
buffer = bytearray(128 * 1024)
mv = memoryview(buffer)
for n in iter(lambda: f.readinto(mv), 0):
_hash.update(mv[:n])
@ -83,7 +83,6 @@ for k, v in thirdparty.items():
destination_path = pype_root / "vendor" / "bin" / k / platform_name
url = v.get(platform_name).get("url")
if not v.get(platform_name):
_print(("missing definition for current "
f"platform [ {platform_name} ]"), 1)