freebsd-ports/devel/py-gdata/files/extra-patch-src_atom-mock_service.py
Li-Wen Hsu 7134bd18ab - Update to 2.0.4
PR:		ports/140395
Submitted by:	Olivier Duchateau <duchateau.olivier AT gmail.com>
2009-11-21 07:50:53 +00:00

13 lines
422 B
Python

--- 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: