mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Using deprecated sha module in place of hashlib to keep compatibility with python2.4
This commit is contained in:
@@ -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]))
|
||||
|
||||
@@ -186,4 +186,4 @@ if __name__ == "__main__":
|
||||
doc_optparse.exception()
|
||||
|
||||
main(label, fit, feats, data_dir, output)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user