mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Use md5.new() constructor
This commit is contained in:
parent
343cbd0279
commit
a90a3b471d
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue