~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/statcache.py

  • Committer: Martin Pool
  • Date: 2005-05-10 06:14:56 UTC
  • Revision ID: mbp@sourcefrog.net-20050510061455-f7c26cefb79afb3d
- fix AtomicFile constructor

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
def write_cache(branch, entry_iter):
73
73
    from atomicfile import AtomicFile
74
74
    
75
 
    outf = AtomicFile(branch.controlfilename('work-cache'), 'w', 'utf-8')
 
75
    outf = AtomicFile(branch.controlfilename('work-cache'), 'wb', 'utf-8')
76
76
    try:
77
77
        for entry in entry_iter:
78
78
            outf.write(entry[0] + ' ' + entry[1] + ' ')