Re: [Zope-dev] SVN: Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py sha - hashlib

2008-10-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Log message for revision 92197: sha - hashlib That needs to be a conditional import, with a fallback to the old sha module: hashlib is not present in python 2.4. E.g.: try: import hashlib except ImportError: # Python

Re: [Zope-dev] SVN: Zope/branches/gsoc-python-2.5/utilities/mkzopeinstance.py sha - hashlib

2008-10-14 Thread Andreas Jung
On 14.10.2008 19:03 Uhr, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: Log message for revision 92197: sha - hashlib That needs to be a conditional import, with a fallback to the old sha module: hashlib is not present in python 2.4. E.g.: try: