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

gh-99325: Remove unused NameError handling #99326

Merged
merged 1 commit into from Nov 11, 2022

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 10, 2022

@sobolevn sobolevn requested a review from ethanfurman as a code owner Nov 10, 2022
@sobolevn sobolevn changed the title gh-99325: Remove unused NameError hanling gh-99325: Remove unused NameError handling Nov 10, 2022
pass
# OSError (winerror=1314) will be raised if the caller does not hold the
# SeCreateSymbolicLinkPrivilege privilege
symlink_exception = (AttributeError, NotImplementedError, OSError)
Copy link
Member

@AlexWaygood AlexWaygood Nov 11, 2022

Choose a reason for hiding this comment

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

This alias is now only used once in this file. You could just inline it here:

except symlink_exception:

Copy link
Member Author

@sobolevn sobolevn Nov 11, 2022

Choose a reason for hiding this comment

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

Someone out there might be using it. So, I went with the safest path

Copy link
Member

@AlexWaygood AlexWaygood Nov 11, 2022

Choose a reason for hiding this comment

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

Ugh, I guess so!

@AlexWaygood AlexWaygood merged commit faf7dfa into python:main Nov 11, 2022
13 checks passed
ethanfurman pushed a commit to ethanfurman/cpython that referenced this pull request Nov 12, 2022
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.

None yet

3 participants