1 --- plugins/cherrypy/_cphttptools.py.orig 2009-05-17 00:58:16.000000000 -0700
2 +++ plugins/cherrypy/_cphttptools.py 2009-05-17 00:57:00.000000000 -0700
6 import cpg, urllib, sys, time, traceback, types, StringIO, cgi, os
7 -import mimetypes, sha, random, string, _cputil, cperror, Cookie, urlparse
8 +import mimetypes, random, string, _cputil, cperror, Cookie, urlparse
9 +from hashlib import sha1
10 from lib.filter import basefilter
15 s += random.choice(string.letters+string.digits)
17 - return sha.sha(s).hexdigest()
18 + return sha1(s).hexdigest()
20 def getObjFromPath(objPathList, objCache):
21 """ For a given objectPathList (like ['root', 'a', 'b', 'index']),