This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author methane
Recipients methane
Date 2021-04-05.12:46:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617626810.53.0.0987972947565.issue43733@roundup.psfhosted.org>
In-reply-to
Content
https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/netrc.py#L29

Can we change the encoding="utf-8" and errors="replace"?

IMHO, comments are source of UnicodeDecodeError. So we can open file with binary mode and skip comments without decoding it.
But we need to decode non-comment lines lines with some encoding anyway.
History
Date User Action Args
2021-04-05 12:46:50methanesetrecipients: + methane
2021-04-05 12:46:50methanesetmessageid: <1617626810.53.0.0987972947565.issue43733@roundup.psfhosted.org>
2021-04-05 12:46:50methanelinkissue43733 messages
2021-04-05 12:46:50methanecreate