Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-12 Thread Patrick McCarty
On Sat, Jul 11, 2009 at 8:25 PM, Maximilian Albert wrote: > 2009/7/11 Neil Puttock : > >> How about using a `try' block to import conditionally? > > Thanks for the suggestion. Here is an updated patch, in case peope > want to have this (otherwise please ignore). Thanks, it's applied. -Patrick _

Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-11 Thread Maximilian Albert
2009/7/11 Neil Puttock : > How about using a `try' block to import conditionally? Thanks for the suggestion. Here is an updated patch, in case peope want to have this (otherwise please ignore). Cheers, Max From 5066717052db35b69af549e1189a88090e12fb78 Mon Sep 17 00:00:00 2001 From: Maximilian Al

Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-10 Thread John Mandereau
2009/7/11 Neil Puttock : > How about using a `try' block to import conditionally? Alternatively, a conditional block based on testing sys.hexversion, which is already used in lilypond-book, could help. Cheers, John ___ lilypond-devel mailing list lily

Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-10 Thread Neil Puttock
2009/7/9 Maximilian Albert : > 2009/7/9 Jan Nieuwenhuizen : >> 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

Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-09 Thread Maximilian Albert
2009/7/9 Jan Nieuwenhuizen : > 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 recommende

Re: [Patch] Replace deprecated md5 module by hashlib

2009-07-09 Thread Jan Nieuwenhuizen
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

[Patch] Replace deprecated md5 module by hashlib

2009-07-09 Thread Maximilian Albert
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. Cheers, Max From 4985eb582afe1493872073be50486db350ed263f Mon Sep 17 00:00:00 2001 Fr