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:
Gregory Szorc 2018-04-18 15:31:59 -07:00
Родитель 4f096bd777
Коммит fcd36e363c
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -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 = []