Merge "Replace md5 module with hashlib module"
This commit is contained in:
commit
707b83e6bf
@ -53,7 +53,7 @@ from __future__ import print_function
|
||||
import argparse
|
||||
import datetime
|
||||
import functools
|
||||
import md5
|
||||
import hashlib
|
||||
import os
|
||||
import pkginfo
|
||||
import re
|
||||
@ -428,7 +428,7 @@ class Mirror(object):
|
||||
'.' + tarball)
|
||||
with open(dot_destination_path, 'w') as dest:
|
||||
src = open(source_path, 'r').read()
|
||||
md5sum = md5.md5(src).hexdigest()
|
||||
md5sum = hashlib.md5(src).hexdigest()
|
||||
dest.write(src)
|
||||
|
||||
safe_name = urllib.quote(tarball)
|
||||
|
Loading…
x
Reference in New Issue
Block a user