[issue34132] Obscure netrc parser "bug"
bbayles
report at bugs.python.org
Thu Jul 19 23:12:47 EDT 2018
bbayles <bbayles at gmail.com> added the comment:
I took a shot at this, but closed my PR when I found that it introduced a different regression.
After playing with it for a bit, I think that this commit [1] is a bit problematic because it uses lexer.instream.readline(), which can make the line number in lexer.lineno incorrect.
I may take another look if I have time, but someone else is free to tackle this.
[1] https://github.com/python/cpython/commit/1df0f214a9fdb4dde7506576b144cf6a7fd01b65#diff-e6896f6d68ca3fd8094a933533f8b2ed
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34132>
_______________________________________
More information about the Python-bugs-list
mailing list