aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-26 18:23:01 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-26 18:23:01 -0800
commit3aa07e9f4e78d3da295de908a83c2e815a3ddfc4 (patch)
treec397556a7c0689ecb12f1ea810e0587ba80c6ecf /tools/shared.py
parenta27c01ed25bcba9abda5f06d79ab166ea5e9d608 (diff)
use hashlib instead of md5
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 7bafd51d..e292dbf3 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -1,4 +1,4 @@
-import shutil, time, os, sys, json, tempfile, copy, shlex, atexit, subprocess, md5, cPickle
+import shutil, time, os, sys, json, tempfile, copy, shlex, atexit, subprocess, hashlib, cPickle
from subprocess import Popen, PIPE, STDOUT
from tempfile import mkstemp
@@ -1170,7 +1170,7 @@ class JCache:
ret = ''
for key in keys:
assert type(key) == str
- ret += md5.md5(key).hexdigest()
+ ret += hashlib.md5(key).hexdigest()
return ret
@staticmethod