On Mar 4, 2009, at 11:39 AM, Serge Zub wrote:
Hi,
The version 1.3.1 still has the problem.
I've looked into the source and it seems I've found the cause!
File "hash.py":
def compute_sha1(rp, compressed = 0):
"""Return the hex sha1 hash of given rpath"""
assert rp.conn is Globals.local_connection # inefficient not to do locally
digest = compute_sha1_fp(rp.open("r", compressed))
rp.set_sha1(digest)
return digest
"r" -- file is opened in text mode.
I suppose that it must be "rb".
Hmm, good thinking.