electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 69c56c5b8d6f903488a42e3fcddf4ab8bb8287eb
parent 6de8a946eb129f051acbf4698b32ca90a4b139c5
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 27 Oct 2012 19:57:28 +0200

open file with b flag

Diffstat:
Mlib/verifier.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/verifier.py b/lib/verifier.py @@ -264,10 +264,10 @@ class WalletVerifier(threading.Thread): def save_chunk(self, index, chunk): filename = self.path() if os.path.exists(filename): - f = open(filename,'rw+') + f = open(filename,'rwb+') else: print "creating file", filename - f = open(filename,'w+') + f = open(filename,'wb+') f.seek(index*2016*80) h = f.write(chunk) f.close() @@ -278,7 +278,7 @@ class WalletVerifier(threading.Thread): assert len(data) == 80 height = header.get('block_height') filename = self.path() - f = open(filename,'rw+') + f = open(filename,'rwb+') f.seek(height*80) h = f.write(data) f.close()