From a27ef7ff6a05a9817b5165e4c3fb643d5d21f532 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 25 Feb 2017 10:25:18 +0200 Subject: Use SHA256 by default; fix pylint warnings/errors --- summain | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'summain') diff --git a/summain b/summain index db12eda..863dc5d 100755 --- a/summain +++ b/summain @@ -15,11 +15,12 @@ # along with this program. If not, see . -import cliapp import csv import json import os +import cliapp + import summainlib @@ -123,7 +124,7 @@ class Summain(cliapp.Application): ['checksum', 'c'], 'which checksums to compute: ' 'MD5, SHA1, SHA224, SHA256, SHA384, SHA512; ' - 'use once per checksum type (default is SHA1)') + 'use once per checksum type (default is SHA256)') self.settings.choice( ['output-format', 'f'], ['rfc822', 'csv', 'json'], @@ -145,7 +146,7 @@ class Summain(cliapp.Application): def process_args(self, args): checksums = [x.upper() - for x in self.settings['checksum'] or ['SHA1']] + for x in self.settings['checksum'] or ['SHA256']] fmt = self.new_formatter(checksums, self.find_roots(args)) fmt.write() -- cgit v1.2.1