~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/export/dir_exporter.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-18 05:38:40 UTC
  • mto: (4634.108.4 2.0)
  • mto: This revision was merged to the branch mainline in revision 4928.
  • Revision ID: john@arbash-meinel.com-20091218053840-d1636x6jf5i3peym
Of course, it helps if you tell the buffered file that it is writable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        mode = 0666
90
90
        if executable:
91
91
            mode = 0777
92
 
        out = os.fdopen(os.open(fullpath, flags, mode))
 
92
        out = os.fdopen(os.open(fullpath, flags, mode), 'wb')
93
93
        try:
94
94
            out.writelines(chunks)
95
95
        finally: