~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

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():