GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-30374: Fixed several bugs in win_add2path.py by XDcsy · Pull Request #1645 · python/cpython Conversation
|
|
@neEverett, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @tiran and @birkenfeld to be potential reviewers. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Overall they are good looking changes, just a few loose ends to tidy up.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import site | ||
| import os | ||
| import winreg | ||
| import ctypes |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Put in alphabetical order
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| envpath, dtype = winreg.QueryValueEx(key, PATH) | ||
| except FileNotFoundError: | ||
| envpath, dtype = "", winreg.REG_EXPAND_SZ | ||
| pass |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary pass
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| except: | ||
| raise OSError("Failed to load PATH value") | ||
|
|
||
| if hasattr(site, "USER_SITE") and dtype == winreg.REG_EXPAND_SZ: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This hasattr check doesn't apply to the subsequent elif block, or rather, if the first check here fails then we may end up crashing in the elif block.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fixed the problems mentioned here: python#1645
Fixed the problems mentioned here: python#1645
|
Closing and reopening to retrigger tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Closing as win_add2path.py was removed in #98167. thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.