From 54ac832a24a0f40ea3278707420b191be3619c99 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 4 Apr 2012 21:28:14 -0400 Subject: #14490, #14491: add 'sundry'-style import tests for Tools/scripts. This patch changes a few of the scripts to have __name__=='__main__' clauses so that they are importable without running. Also fixes the syntax errors revealed by the tests. --- Tools/scripts/md5sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tools/scripts/md5sum.py') diff --git a/Tools/scripts/md5sum.py b/Tools/scripts/md5sum.py index 743da72aa8..521960c17d 100755 --- a/Tools/scripts/md5sum.py +++ b/Tools/scripts/md5sum.py @@ -20,7 +20,7 @@ file ... : files to sum; '-' or no files means stdin import sys import os import getopt -import md5 +from hashlib import md5 def sum(*files): sts = 0 -- cgit v1.2.1