[Pkg-bazaar-commits] ./bzr/unstable r432: - fix AtomicFile constructor

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:19:52 UTC 2009


------------------------------------------------------------
revno: 432
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-05-10 16:14:56 +1000
message:
  - fix AtomicFile constructor
modified:
  bzrlib/statcache.py
-------------- next part --------------
=== modified file 'bzrlib/statcache.py'
--- a/bzrlib/statcache.py	2005-05-10 06:13:49 +0000
+++ b/bzrlib/statcache.py	2005-05-10 06:14:56 +0000
@@ -72,7 +72,7 @@
 def write_cache(branch, entry_iter):
     from atomicfile import AtomicFile
     
-    outf = AtomicFile(branch.controlfilename('work-cache'), 'w', 'utf-8')
+    outf = AtomicFile(branch.controlfilename('work-cache'), 'wb', 'utf-8')
     try:
         for entry in entry_iter:
             outf.write(entry[0] + ' ' + entry[1] + ' ')



More information about the Pkg-bazaar-commits mailing list