/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-20 02:28:21 UTC
  • mfrom: (1666.1.10 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060420022821-4337b8fa4942d8fe
Make knits the default format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
530
530
 
531
531
def split_lines(s):
532
532
    """Split s into lines, but without removing the newline characters."""
533
 
    return StringIO(s).readlines()
 
533
    lines = s.split('\n')
 
534
    result = [line + '\n' for line in lines[:-1]]
 
535
    if lines[-1]:
 
536
        result.append(lines[-1])
 
537
    return result
534
538
 
535
539
 
536
540
def hardlinks_good():