From 28016bd908146a08b2e3f4a195f2a189de9defe4 Mon Sep 17 00:00:00 2001 From: Ian Schenck Date: Thu, 5 Feb 2009 15:34:31 -0500 Subject: [PATCH] Using deprecated sha module in place of hashlib to keep compatibility with python2.4 --- lib/galaxy/web/controllers/genetrack.py | 4 ++-- tools/visualization/genetrack.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/web/controllers/genetrack.py b/lib/galaxy/web/controllers/genetrack.py index a8ea5e36bae..b964d844237 100644 --- a/lib/galaxy/web/controllers/genetrack.py +++ b/lib/galaxy/web/controllers/genetrack.py @@ -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])) diff --git a/tools/visualization/genetrack.py b/tools/visualization/genetrack.py index 14c290f05d2..579b5a82642 100644 --- a/tools/visualization/genetrack.py +++ b/tools/visualization/genetrack.py @@ -186,4 +186,4 @@ if __name__ == "__main__": doc_optparse.exception() main(label, fit, feats, data_dir, output) - \ No newline at end of file +