[Zodb-checkins] SVN: ZODB/branches/jim-zeo-blob/src/ZEO/ClientStorage.py Fixed windows bug. Grrrrrr.

Jim Fulton jim at zope.com
Thu May 17 19:18:19 EDT 2007


Log message for revision 75825:
  Fixed windows bug. Grrrrrr.
  

Changed:
  U   ZODB/branches/jim-zeo-blob/src/ZEO/ClientStorage.py

-=-
Modified: ZODB/branches/jim-zeo-blob/src/ZEO/ClientStorage.py
===================================================================
--- ZODB/branches/jim-zeo-blob/src/ZEO/ClientStorage.py	2007-05-17 22:59:19 UTC (rev 75824)
+++ ZODB/branches/jim-zeo-blob/src/ZEO/ClientStorage.py	2007-05-17 23:18:19 UTC (rev 75825)
@@ -946,13 +946,13 @@
         assert os.path.exists(blob_filename+'.lock')
         blob_filename += '.dl'
         assert not os.path.exists(blob_filename)
-        f = open(blob_filename, 'w')
+        f = open(blob_filename, 'wb')
         f.close()
 
     def recieveBlobChunk(self, oid, serial, chunk):
         blob_filename = self.fshelper.getBlobFilename(oid, serial)+'.dl'
         assert os.path.exists(blob_filename)
-        f = open(blob_filename, 'a')
+        f = open(blob_filename, 'ab')
         f.write(chunk)
         f.close()
         



More information about the Zodb-checkins mailing list