Rev 4715: Of course, it helps if you tell the buffered file that it is writable. in http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-faster-export-343218

John Arbash Meinel john at arbash-meinel.com
Fri Dec 18 05:39:02 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.0.4-faster-export-343218

------------------------------------------------------------
revno: 4715
revision-id: john at arbash-meinel.com-20091218053840-d1636x6jf5i3peym
parent: john at arbash-meinel.com-20091217145420-5cmm4iqody73e5sm
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.0.4-faster-export-343218
timestamp: Thu 2009-12-17 23:38:40 -0600
message:
  Of course, it helps if you tell the buffered file that it is writable.
-------------- next part --------------
=== modified file 'bzrlib/export/dir_exporter.py'
--- a/bzrlib/export/dir_exporter.py	2009-12-17 14:54:20 +0000
+++ b/bzrlib/export/dir_exporter.py	2009-12-18 05:38:40 +0000
@@ -89,7 +89,7 @@
         mode = 0666
         if executable:
             mode = 0777
-        out = os.fdopen(os.open(fullpath, flags, mode))
+        out = os.fdopen(os.open(fullpath, flags, mode), 'wb')
         try:
             out.writelines(chunks)
         finally:



More information about the bazaar-commits mailing list