[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public

Conversation

Copy link
Contributor

KrishnaSai2020 commented Jun 17, 2020

bpo-41005: Fixed if/else bug in code

https://bugs.python.org/issue41005

Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

Recognized GitHub username

We couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames:

@KrishnaSai2020

This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

KrishnaSai2020 changed the title bpo-41005: Fixeed if/else bug in code bpo-41005: Fixed if/else bug in code Jun 17, 2020
Copy link
Contributor Author

I've signed the CLA but it will take one business day to come through should I close this pull request and create new one once the cla goes through??

Copy link

I've signed the CLA but it will take one business day to come through should I close this pull request and create new one once the cla goes through??

Hi @KrishnaSai2020, welcome to Python! You can wait a few days and use https://check-python-cla.herokuapp.com/ to check the CLA again.

Copy link
Contributor Author

@remilapeyre ok then will do 👍

Copy link
Contributor Author

@remilapeyre yeah its come through please review

Copy link
Contributor Author

@remilapeyre please review

Copy link
Contributor

ronaldoussoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this is not the correct fix, this just removes the xdg-settings path on macOS, event without changing the comment in the macOS specific path that says macOS also uses the unix behaviour.

A better fix is to catch and ignore PermissionError when starting xdg-settings (not being allowed to start xdg-settings is similar to it not being on the system at all)

Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Contributor Author

KrishnaSai2020 commented Jun 21, 2020

@ronaldoussoren so you're suggesting a try except block to catch the permissions error? also how could code it to ignore the error?

edit : wait no I could just type pass

Copy link
Contributor Author

I have made the requested changes; please review again

Copy link

Thanks for making the requested changes!

@ronaldoussoren: please review the changes made to this pull request.

KrishnaSai2020 changed the title bpo-41005: Fixed if/else bug in code bpo-41005: Fixed perrmission error Jun 21, 2020
Copy link
Contributor Author

@ronaldoussoren please re-review the changes that were made

Copy link
Contributor

ronaldoussoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch looks good to me.

Copy link
Contributor

Thanks @KrishnaSai2020 for the PR, and @ronaldoussoren for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 22, 2020
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Copy link

GH-21051 is a backport of this pull request to the 3.9 branch.

Copy link
Contributor

@KrishnaSai2020: Thanks for your PR!

Copy link

GH-21052 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 22, 2020
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
Copy link
Contributor Author

@ronaldoussoren np!

ronaldoussoren pushed a commit that referenced this pull request Jun 24, 2020
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
ronaldoussoren pushed a commit that referenced this pull request Jun 24, 2020
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
(cherry picked from commit 9e27bc0)

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>

Co-authored-by: Krishna Chivukula <63070026+KrishnaSai2020@users.noreply.github.com>
fasih pushed a commit to fasih/cpython that referenced this pull request Jun 29, 2020
* fixed issue 41005: webbrowser fails when xdg-settings cannot be executed

Co-authored-by: KrishnaSai2020 <krishnasai.chivukula@gmal.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
KrishnaSai2020 deleted the fix-issue-41005 branch July 24, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants