Ticket #266: sugar-266-sugar-toolkit.patch
File sugar-266-sugar-toolkit.patch, 531 bytes (added by alsroot, 15 years ago) |
---|
-
src/sugar/util.py
diff --git a/src/sugar/util.py b/src/sugar/util.py index e027734..26bbe83 100644
a b UNSTABLE. We have been adding helpers randomly to this module. 22 22 23 23 import os 24 24 import time 25 import sha25 import hashlib 26 26 import random 27 27 import binascii 28 28 import gettext … … def printable_hash(in_hash): 42 42 43 43 def sha_data(data): 44 44 """sha1 hash some bytes.""" 45 sha_hash = sha.new()45 sha_hash = hashlib.sha1() 46 46 sha_hash.update(data) 47 47 return sha_hash.digest() 48 48