Using deprecated sha module in place of hashlib to keep compatibility with python2.4

This commit is contained in:
Ian Schenck
2009-02-05 15:34:31 -05:00
parent e8b3f2ab66
commit 28016bd908
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import time, glob, os
from itertools import cycle
import hashlib
import sha
from mako import exceptions
from mako.template import Template
@@ -265,7 +265,7 @@ class WebRoot(BaseController):
tmpl_name, track_maker = conf.PLOT_MAPPER[param.plot]
# check against a hash, display an image that already exists if it was previously created.
hash = hashlib.sha1()
hash = sha.new()
hash.update(str(dataset_id))
for key in sorted(kwds.keys()):
hash.update(str(kwds[key]))
+1 -1
View File
@@ -186,4 +186,4 @@ if __name__ == "__main__":
doc_optparse.exception()
main(label, fit, feats, data_dir, output)