[issue12009] netrc module crashes if netrc file has comment lines

Ruslan Mstoi report at bugs.python.org
Tue May 17 16:38:11 CEST 2011


Ruslan Mstoi <rmstoi at gmail.com> added the comment:

OK, finally got some time to make a patch. The fix is to seek the beginning of the comment before calling readline. That way the next line won't be deleted.

Also, provided a test case for this issue in the patch.

----------
keywords: +patch
Added file: http://bugs.python.org/file22013/issue12009_patch.diff

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


More information about the Python-bugs-list mailing list