~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Martin Pool
  • Date: 2005-06-29 02:55:33 UTC
  • Revision ID: mbp@sourcefrog.net-20050629025533-c8fb62423361c8a2
Patch from John:

- StringIO mixes poorly with difflib

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        ud = list(ud)
64
64
        ud[2] = ud[2].replace('+1,0', '+0,0')
65
65
 
66
 
    to_file.writelines(ud)
 
66
    for line in ud:
 
67
        to_file.write(line)
67
68
    if nonl:
68
69
        print >>to_file, "\\ No newline at end of file"
69
70
    print >>to_file