Message354834
If I load a file which contains "\r" and "\n", I can find "\n", but not "\r". This behaviour is inconsistent in Python 3, but consistent in Python 2.
>>> open('./3cjkxdnw/accessibilityLog/1570181896323.csv', 'rb').read().count(b'\r')
88
>>> open('./3cjkxdnw/accessibilityLog/1570181896323.csv').read().count('\r')
0
>>> type(open('./3cjkxdnw/accessibilityLog/1570181896323.csv').read())
<class 'str'>
>>> type('\r')
<class 'str'>
Thanks! |
|
Date |
User |
Action |
Args |
2019-10-17 08:22:02 | xuancong84 | set | recipients:
+ xuancong84 |
2019-10-17 08:22:02 | xuancong84 | set | messageid: <1571300522.6.0.320185035424.issue38503@roundup.psfhosted.org> |
2019-10-17 08:22:02 | xuancong84 | link | issue38503 messages |
2019-10-17 08:22:01 | xuancong84 | create | |
|