Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12843, comment 7


Ignore:
Timestamp:
Jul 18, 2017, 11:38:45 AM (7 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12843, comment 7

    initial v1  
    55
    66I think we should see [https://docs.python.org/2/library/stdtypes.html#unicode.splitlines unicode.splitlines] rather than [https://docs.python.org/2/library/stdtypes.html#str.splitlines str.splitlines].
     7
     8Also, `\r` is one of line boundaries in `str.splitlines()` but `/\r?\n/` doesn't match `\r`.
     9
     10{{{#!pycon
     11>>> 'aaaa\rbbbb\nccccc\r\ndddd'.splitlines()
     12['aaaa', 'bbbb', 'ccccc', 'dddd']
     13}}}