[Pkg-bazaar-commits] ./bzr/unstable r804: Patch from John:

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:05 UTC 2009


------------------------------------------------------------
revno: 804
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-29 12:55:33 +1000
message:
  Patch from John:
  
  - StringIO mixes poorly with difflib
modified:
  bzrlib/diff.py
-------------- next part --------------
=== modified file 'bzrlib/diff.py'
--- a/bzrlib/diff.py	2005-06-24 07:06:38 +0000
+++ b/bzrlib/diff.py	2005-06-29 02:55:33 +0000
@@ -63,7 +63,8 @@
         ud = list(ud)
         ud[2] = ud[2].replace('+1,0', '+0,0')
 
-    to_file.writelines(ud)
+    for line in ud:
+        to_file.write(line)
     if nonl:
         print >>to_file, "\\ No newline at end of file"
     print >>to_file



More information about the Pkg-bazaar-commits mailing list