diff options
author | 2013-08-03 09:24:38 -0400 | |
---|---|---|
committer | 2013-08-03 09:26:24 -0400 | |
commit | cb8d8aba36328ed5196adca572466e655932d511 (patch) | |
tree | 5bf9c9d982f7a59f3bd656e10466b323802ca210 | |
parent | WebappConfig/wrapper.py: fix paludis support (diff) | |
download | webapp-config-cb8d8aba36328ed5196adca572466e655932d511.tar.gz webapp-config-cb8d8aba36328ed5196adca572466e655932d511.tar.bz2 webapp-config-cb8d8aba36328ed5196adca572466e655932d511.zip |
WebappConfig/content.py: use hashlib instead of md5 module
X-Gentoo-Bug: 282831
X-Gentoo-Bug-URL: https://bugs.gentoo.org/282831
-rw-r--r-- | WebappConfig/content.py | 4 |
1 files 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.''' |