~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin Pool
  • Date: 2005-09-13 06:24:27 UTC
  • Revision ID: mbp@sourcefrog.net-20050913062426-330489777cdc9099
- more progress on fetch on top of weaves

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
 
19
19
import os, types, re, time, errno, sys
 
20
from cStringIO import StringIO
 
21
 
20
22
from stat import S_ISREG, S_ISDIR, S_ISLNK, ST_MODE, ST_SIZE
21
23
 
22
24
from bzrlib.errors import BzrError
492
494
        raise
493
495
 
494
496
 
 
497
 
 
498
def split_lines(s):
 
499
    """Split s into lines, but without removing the newline characters."""
 
500
    return StringIO(s).readlines()
 
501