Skip to content

bpo-34132: Fix netrc parsing regression#8320

Closed
bbayles wants to merge 2 commits into
python:masterfrom
bbayles:netrc-comments-34132
Closed

bpo-34132: Fix netrc parsing regression#8320
bbayles wants to merge 2 commits into
python:masterfrom
bbayles:netrc-comments-34132

Conversation

@bbayles

@bbayles bbayles commented Jul 18, 2018

Copy link
Copy Markdown
Contributor

This PR adds a test and fix for the issue described in bpo-34132, a strange regression in netrc parsing that causes recent versions of Python 3 to fail to parse files like this:


# Comment
default login user password pass 

but to succesfully parse files like this:


#Comment
default login user password pass 

This fix is adapted from the Python 2 version, which is able to parse the former file.

https://bugs.python.org/issue34132

@bbayles

bbayles commented Jul 19, 2018

Copy link
Copy Markdown
Contributor Author

I found another regression; I'll close and re-submit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants