URI: 
       topen file with b flag - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 69c56c5b8d6f903488a42e3fcddf4ab8bb8287eb
   DIR parent 6de8a946eb129f051acbf4698b32ca90a4b139c5
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Sat, 27 Oct 2012 19:57:28 +0200
       
       open file with b flag
       
       Diffstat:
         M lib/verifier.py                     |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/lib/verifier.py b/lib/verifier.py
       t@@ -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()
       t@@ -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()