From a90a3b471de133df411e947d8a498e7965f6d800 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Wed, 17 Apr 2002 21:53:21 +0000 Subject: Use md5.new() constructor --- Demo/pdist/cvslib.py | 2 +- Tools/scripts/sum5.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/pdist/cvslib.py b/Demo/pdist/cvslib.py index fa0e0f9..0f689c4 100755 --- a/Demo/pdist/cvslib.py +++ b/Demo/pdist/cvslib.py @@ -70,7 +70,7 @@ class File: except os.error: self.lmtime = self.lctime = self.lsum = None else: - self.lsum = md5.md5(open(self.file).read()).digest() + self.lsum = md5.new(open(self.file).read()).digest() self.lseen = 1 def getentry(self, line): diff --git a/Tools/scripts/sum5.py b/Tools/scripts/sum5.py index 6d3b965..3efcc74 100755 --- a/Tools/scripts/sum5.py +++ b/Tools/scripts/sum5.py @@ -55,7 +55,7 @@ def printsum(file, out = sys.stdout): return sts def printsumfp(fp, file, out = sys.stdout): - m = md5.md5() + m = md5.new() try: while 1: data = fp.read(bufsize) -- cgit v0.12