##// END OF EJS Templates
util: remove warnings when importing md5 and sha
Sune Foldager -
r8295:1ea7e7d9 default
parent child Browse files
Show More
@@ -25,8 +25,7 b' def md5(s):'
25 25 import hashlib
26 26 _md5 = hashlib.md5
27 27 except ImportError:
28 import md5
29 _md5 = md5.md5
28 from md5 import md5 as _md5
30 29 global md5
31 30 md5 = _md5
32 31 return _md5(s)
@@ -36,8 +35,7 b' def sha1(s):'
36 35 import hashlib
37 36 _sha1 = hashlib.sha1
38 37 except ImportError:
39 import sha
40 _sha1 = sha.sha
38 from sha import sha as _sha1
41 39 global sha1
42 40 sha1 = _sha1
43 41 return _sha1(s)
General Comments 0
You need to be logged in to leave comments. Login now