summaryrefslogtreecommitdiff
path: root/summain
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-02-25 10:25:18 +0200
committerLars Wirzenius <liw@liw.fi>2017-02-25 10:25:18 +0200
commita27ef7ff6a05a9817b5165e4c3fb643d5d21f532 (patch)
tree1703668fe41aa6700f3f16feaebe50a15201156f /summain
parenta94b7ba5960384c5f3c5281cd9d6bf3a768054da (diff)
downloadsummain-master.tar.gz
Use SHA256 by default; fix pylint warnings/errorsHEADmaster
Diffstat (limited to 'summain')
-rwxr-xr-xsummain7
1 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
-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()