~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rio.py

  • Committer: Aaron Bentley
  • Date: 2007-03-01 18:30:50 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: abentley@panoramicfeedback.com-20070301183050-g05fxlw903g99b1h
Handle trailing whitepace cleanly

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
        new_lines = []
360
360
        for line in lines:
361
361
            line = re.sub('([^\r])\n', '\\1\r\n', line)
 
362
            line = re.sub(' *\r\n', '\r\n', line)
362
363
            new_lines.append(line)
363
364
        return new_lines
364
365