opnsense-ports/devel/py-gdata/files/patch-src_atom-mock_service.py
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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: