Woudn't a conditional import work fine? Something like try: from hashlib import sha1 as sha except ImportError: # Python < 2.5 from sha import new as sha
and the same for md5 if needed --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

