summaryrefslogtreecommitdiff
path: root/devel/py-gdata/files/extra-patch-src_atom-mock_service.py
blob: eeeb6b64fb406a64c74e6c213ec43be5e8e234b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/atom/mock_service.py.orig	2008-09-03 23:11:05.000000000 +0200
+++ src/atom/mock_service.py	2009-11-03 21:39:47.358018717 +0100
@@ -34,8 +34,8 @@
 real_request_handler = None
 
 def ConcealValueWithSha(source):
-  import sha
-  return sha.new(source[:-5]).hexdigest()
+  import hashlib 
+  return hashlibsha1.new(source[:-5]).hexdigest()
 
 def DumpRecordings(conceal_func=ConcealValueWithSha):
   if conceal_func: