2009/7/9 Maximilian Albert <maximilian.alb...@googlemail.com>: > 2009/7/9 Jan Nieuwenhuizen <janneke-l...@xs4all.nl>: >> On do, 2009-07-09 at 21:41 +0900, Maximilian Albert wrote: >>> Hi, >>> >>> while running the regtests I spotted a warning about the use of the >>> deprecated md5 module in scripts/lilypond-book.py. Attached is a patch >>> which replaces this module by hashlib as recommended in the warning. >> >> This won't work with python 2.4, or am I missing something? >> -- the rest of lily still builds with that... > > Ah, sorry. In this case please ignore my message. Sorry for the noise.
How about using a `try' block to import conditionally? Here's how Rietveld's upload.py deals with it: # The md5 module was deprecated in Python 2.5. try: from hashlib import md5 except ImportError: from md5 import md5 Regards, Neil _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel