summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKees Cook <kees@debian.org>2009-03-27 15:48:31 +0000
committerKees Cook <kees@debian.org>2009-03-27 15:48:31 +0000
commit4b87ed8d7cdcb1b6d3ecdffa29d6a886aad7f87d (patch)
tree2c78e4f3b73f57538c93b305339444a4bbab83ee /lib
parent49d5cfd93103302edda7f367721b79350442b528 (diff)
NFUs: 31; adjust debian_support to use hashlib
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@11483 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r--lib/python/debian_support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/debian_support.py b/lib/python/debian_support.py
index 0239ac8965..7d4232d2e7 100644
--- a/lib/python/debian_support.py
+++ b/lib/python/debian_support.py
@@ -19,7 +19,7 @@
import os
import re
-import sha
+import hashlib
import types
import apt_pkg
@@ -185,7 +185,7 @@ def internRelease(name, releases=listReleases()):
del listReleases
def readLinesSHA1(lines):
- m = sha.new()
+ m = hashlib.sha()
for l in lines:
m.update(l)
return m.hexdigest()

© 2014-2024 Faster IT GmbH | imprint | privacy policy