Author berker.peksag
Recipients Aaron1011, a.badger, berker.peksag, jcea, michael.foord, python-dev, rbcollins
Date 2015-08-07.14:52:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438959159.15.0.0213877937953.issue23004@psf.upfronthosting.co.za>
In-reply-to
Content
data_as_list = read_data.splitlines(True)

is not actually the equivalent of

    data_as_list = [l + sep for l in read_data.split(sep)]

It will change the behavior of the _iterate_read_data helper. See the comment at https://github.com/python/cpython/blob/78d05eb847c6b8fede08ca74bb59210c00e4c599/Lib/unittest/mock.py#L2278

However, in default branch, we can simplify it to

    yield from read_data.splitlines(keepends=True)
History
Date User Action Args
2015-08-07 14:52:39berker.peksagsetrecipients: + berker.peksag, jcea, rbcollins, a.badger, michael.foord, python-dev, Aaron1011
2015-08-07 14:52:39berker.peksagsetmessageid: <1438959159.15.0.0213877937953.issue23004@psf.upfronthosting.co.za>
2015-08-07 14:52:39berker.peksaglinkissue23004 messages
2015-08-07 14:52:38berker.peksagcreate