Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in error message when decoding PYTHONPATH. #6981

Merged
merged 1 commit into from
May 19, 2018

Conversation

carljm
Copy link
Member

@carljm carljm commented May 19, 2018

This looks like a simple typo that slipped through in 46972b7.

@carljm
Copy link
Member Author

carljm commented May 19, 2018

cc @vstinner

@carljm
Copy link
Member Author

carljm commented May 19, 2018

Also cc @ned-deily in case you want to consider this for 3.7. It is a regression in 3.7; if PYTHONPATH can’t be decoded in the current locale, the error message will mention the wrong env var (PYTHONHOME instead of PYTHONPATH), which could send someone on a confusing wild goose chase.

@miss-islington
Copy link
Contributor

Thanks @carljm for the PR, and @ned-deily for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 19, 2018
@bedevere-bot
Copy link

GH-6993 is a backport of this pull request to the 3.7 branch.

ned-deily pushed a commit that referenced this pull request May 19, 2018
@vstinner
Copy link
Member

Oh. Thanks for the fix :-) My code requires to repeat the same variable name 3 times, it's very error prone, but I failed to design a simpler C API to avoid to repeat myself ;-) The current code is simple enough.

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.

7 participants