diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-08 07:24:09 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-08 07:24:09 +0000 |
commit | 96b4ca440af46611158ce8bc75a9ca630810b1a3 (patch) | |
tree | c6209ebc75bd94e175563b0a41e58568b1fac01a /dbgenerator | |
parent | Minor commit to test sources.g.o mirroring. (diff) | |
download | packages-3-96b4ca440af46611158ce8bc75a9ca630810b1a3.tar.gz packages-3-96b4ca440af46611158ce8bc75a9ca630810b1a3.tar.bz2 packages-3-96b4ca440af46611158ce8bc75a9ca630810b1a3.zip |
Migration for Python 2.5.
Diffstat (limited to 'dbgenerator')
-rw-r--r-- | dbgenerator/backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbgenerator/backend.py b/dbgenerator/backend.py index 485451a..df3c577 100644 --- a/dbgenerator/backend.py +++ b/dbgenerator/backend.py @@ -13,13 +13,13 @@ from snakeoil.fileutils import iter_read_bash from snakeoil.osutils import pjoin import os import errno -import sha +import hashlib def file_sha1(path): sha1 = 'NULL' if os.path.exists(path): f = open(path, 'r') - sha1 = sha.sha(f.read()).hexdigest() + sha1 = hashlib.sha1(f.read()).hexdigest() return sha1 def file_mtime(path): |