Message397974
Changing sniffer logic is risky because it risks breaking existing code that relies on the current predictions.
FWIW, in your example, the sniffer gets the desired result if given a delimiter hint:
>>> s = "a|b\nc| 'd\ne|' f"
>>> pprint.pp(dict(vars(Sniffer().sniff(s, '|'))))
{'__module__': 'csv',
'_name': 'sniffed',
'lineterminator': '\r\n',
'quoting': 0,
'__doc__': None,
'doublequote': False,
'delimiter': '|',
'quotechar': "'",
'skipinitialspace': False} |
|
Date |
User |
Action |
Args |
2021-07-22 02:15:15 | rhettinger | set | recipients:
+ rhettinger, python-dev, pt12lol |
2021-07-22 02:15:15 | rhettinger | set | messageid: <1626920115.35.0.271412428254.issue44677@roundup.psfhosted.org> |
2021-07-22 02:15:15 | rhettinger | link | issue44677 messages |
2021-07-22 02:15:14 | rhettinger | create | |
|