Browse Source

build: read node files as binary files (#28729)

John Kleinschmidt 4 years ago
parent
commit
8164322195
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/release/uploaders/upload-node-checksums.py

+ 1 - 1
script/release/uploaders/upload-node-checksums.py

@@ -88,7 +88,7 @@ def create_checksum(algorithm, directory, filename, files):
   lines = []
   for path in files:
     h = hashlib.new(algorithm)
-    with open(path, 'r') as f:
+    with open(path, 'rb') as f:
       h.update(f.read())
       lines.append(h.hexdigest() + '  ' + os.path.relpath(path, directory))