зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455143 - Remove hash name validation; r=ted
Garbage in garbage out. Let's make this code simpler. MozReview-Commit-ID: Gv0ZcMacyOX --HG-- extra : rebase_source : 2e8131bc1926b6ad7f186d0778fe4b339c6ba834
This commit is contained in:
Родитель
4f096bd777
Коммит
fcd36e363c
|
@ -132,13 +132,6 @@ def main():
|
|||
# Validate the digest type to use
|
||||
if not options.digests:
|
||||
options.digests = ['sha1']
|
||||
try:
|
||||
for digest in options.digests:
|
||||
hashlib.new(digest)
|
||||
except ValueError as ve:
|
||||
logger.error('Could not create a "%s" hash object (%s)' %
|
||||
(digest, ve.args[0]))
|
||||
exit(1)
|
||||
|
||||
# Validate the files to checksum
|
||||
files = []
|
||||
|
|
Загрузка…
Ссылка в новой задаче