From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-616058-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 68221138200 for <garchives@archives.gentoo.org>; Sat, 3 Aug 2013 13:24:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFCDEE0A88; Sat, 3 Aug 2013 13:24:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82CB1E0A88 for <gentoo-commits@lists.gentoo.org>; Sat, 3 Aug 2013 13:24:23 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B46133EC55 for <gentoo-commits@lists.gentoo.org>; Sat, 3 Aug 2013 13:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 25C2DE5461 for <gentoo-commits@lists.gentoo.org>; Sat, 3 Aug 2013 13:24:21 +0000 (UTC) From: "Anthony G. Basile" <blueness@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" <blueness@gentoo.org> Message-ID: <1375536384.cb8d8aba36328ed5196adca572466e655932d511.blueness@gentoo> Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/content.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: cb8d8aba36328ed5196adca572466e655932d511 X-VCS-Branch: master Date: Sat, 3 Aug 2013 13:24:21 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 573f3068-f75e-4094-877b-45a10483247f X-Archives-Hash: 4a76c5d828c23470526561553ab80abc commit: cb8d8aba36328ed5196adca572466e655932d511 Author: Nico Baggus <mlspamcb <AT> noci <DOT> xs4all <DOT> nl> AuthorDate: Sat Aug 3 13:24:38 2013 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Sat Aug 3 13:26:24 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/webapp-config.git;a=commit;h=cb8d8aba WebappConfig/content.py: use hashlib instead of md5 module X-Gentoo-Bug: 282831 X-Gentoo-Bug-URL: https://bugs.gentoo.org/282831 --- WebappConfig/content.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebappConfig/content.py b/WebappConfig/content.py index 8e92622..966a9cd 100644 --- a/WebappConfig/content.py +++ b/WebappConfig/content.py @@ -22,7 +22,7 @@ installation. ''' # Dependencies # ------------------------------------------------------------------------ -import md5, re, os, os.path +import hashlib, re, os, os.path from WebappConfig.debug import OUT from WebappConfig.permissions import PermissionMap @@ -531,7 +531,7 @@ class Contents: def file_md5(self, filename): ''' Return the md5 hash for the file content.''' - return str(md5.md5(open(filename).read()).hexdigest()) + return str(hashlib.md5(open(filename).read()).hexdigest()) def file_time(self, filename): ''' Return the last modification time.'''