[issue10464] netrc module not parsing passwords containing #s.

Xuanji Li report at bugs.python.org
Thu Nov 25 16:12:04 CET 2010


Xuanji Li <xuanji at gmail.com> added the comment:

The patch attached (issue_10464_fix) moves handling of the '#' character from shlex to netrc, and makes netrc consider as comments lines whose first not-whitespace character is '#' instead of all text following '#' (which is what shlex does and which causes this bug). It also includes a test case.

----------
Added file: http://bugs.python.org/file19818/issue_10464_fix.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10464>
_______________________________________


More information about the Python-bugs-list mailing list