Jan Beulich wrote: >>>> Gerd Hoffmann 10.03.09 14:44 >>> >> Which makes me think at least the hashlib one needs a more sophisticated >> approach so it keeps working on pre-2.5 versions ... > > Something like this (I had hoped this would have been submitted long ago, > but apparently it wasn't even attempted). > -import sha > +try: > + import hashlib # python v2.6 or newer > +except ImportError: > + import sha # python v2.5 or older Well, due to the renaming (sha.sha -> hashlib.sha1) it isn't *that* easy. Patch below could work. WARNING: untested. cheers, Gerd