We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebaac3c commit 8d52879Copy full SHA for 8d52879
auditwheel/wheeltools.py
@@ -76,16 +76,17 @@ def skip(path):
76
for path in walk():
77
relative_path = relpath(path, bdist_dir)
78
if skip(relative_path):
79
- hash = ''
+ hash_ = ''
80
size = ''
81
else:
82
with open(path, 'rb') as f:
83
data = f.read()
84
digest = hashlib.sha256(data).digest()
85
- hash = 'sha256=' + urlsafe_b64encode(digest).decode('ascii')
+ sha256 = urlsafe_b64encode(digest).rstrip(b'=').decode('ascii')
86
+ hash_ = f'sha256={sha256}'
87
size = len(data)
88
record_path = relpath(path, bdist_dir).replace(psep, '/')
- writer.writerow((record_path, hash, size))
89
+ writer.writerow((record_path, hash_, size))
90
91
92
class InWheel(InTemporaryDirectory):
0 commit comments