Message255397
Another way to get universal newlines I have used in other cases is to use TextIOWrapper. It might be easier if you really need that multi-line RE search:
text = TextIOWrapper(BytesIO(stderr), "ascii").read() |
|
Date |
User |
Action |
Args |
2015-11-26 01:18:26 | martin.panter | set | recipients:
+ martin.panter, vstinner, r.david.murray, serhiy.storchaka, mystor |
2015-11-26 01:18:25 | martin.panter | set | messageid: <1448500705.94.0.494070266084.issue25677@psf.upfronthosting.co.za> |
2015-11-26 01:18:25 | martin.panter | link | issue25677 messages |
2015-11-26 01:18:24 | martin.panter | create | |
|