From 4985eb582afe1493872073be50486db350ed263f Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 9 Jul 2009 21:13:08 +0900 Subject: [PATCH] Use hashlib instead of deprecated md5 module --- scripts/lilypond-book.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index e851a40..0c3d662 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -29,7 +29,7 @@ TODO: ''' import glob -import md5 +import hashlib import os import re import stat @@ -1235,7 +1235,7 @@ class LilypondSnippet (Snippet): def get_checksum (self): if not self.checksum: - hash = md5.md5 (self.relevant_contents (self.full_ly ())) + hash = hashlib.md5 (self.relevant_contents (self.full_ly ())) ## let's not create too long names. self.checksum = hash.hexdigest ()[:10] -- 1.6.0.4