[PATCH] fix for broken replace in bzrlib/branch.py

Fredrik Lundh fredrik at pythonware.com
Fri Apr 15 22:22:31 BST 2005


tinkering around a little, I noticed a suspicious replace call in bzrlib/branch.py.
I've attached a fix.

(btw, and fwiw, I fully agree with the "I think it might be better" comment)

enjoy /F 

*** modified file 'bzrlib/branch.py'
--- bzrlib/branch.py
+++ bzrlib/branch.py
@@ -202,7 +202,7 @@
         # on Windows from Linux and so on.  I think it might be better
         # to always make all internal files in unix format.
         fmt = self.controlfile('branch-format', 'r').read()
-        fmt.replace('\r\n', '')
+        fmt = fmt.replace('\r\n', '\n')
         if fmt != BZR_BRANCH_FORMAT:
             bailout('sorry, branch format %r not supported' % fmt,
                     ['use a different bzr version',






More information about the bazaar mailing list