Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/util.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-11 13:07:22 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-11 13:07:22 (GMT)
commitd22e6908227e9b950165cf2dc29d436ed2667c27 (patch)
tree991a4448327b6e09a1e9371933da8d86a9ee585b /src/sugar/util.py
parent5fc5b08599ee1e03ed287d3ddbd54e1c6d2d724f (diff)
md5 and sha module will be deprecated in python 2.6 #266
Diffstat (limited to 'src/sugar/util.py')
-rw-r--r--src/sugar/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/util.py b/src/sugar/util.py
index e027734..26bbe83 100644
--- a/src/sugar/util.py
+++ b/src/sugar/util.py
@@ -22,7 +22,7 @@ UNSTABLE. We have been adding helpers randomly to this module.
import os
import time
-import sha
+import hashlib
import random
import binascii
import gettext
@@ -42,7 +42,7 @@ def printable_hash(in_hash):
def sha_data(data):
"""sha1 hash some bytes."""
- sha_hash = sha.new()
+ sha_hash = hashlib.sha1()
sha_hash.update(data)
return sha_hash.digest()