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

address os_error hierarchy #311

Open
graingert opened this issue Nov 21, 2019 · 0 comments
Open

address os_error hierarchy #311

graingert opened this issue Nov 21, 2019 · 0 comments

Comments

@graingert
Copy link
Contributor

graingert commented Nov 21, 2019

somewhat related to #7
I'd like to see an os_errors exception:

try:
    from select import error as select_error
except ImportError:
    select_error = None

os_errors = (
    (EnvironmentError, select_error)
    if six.PY2 and select_error
    else (EnvironmentError, )
    if six.PY2
    else (OSError, )
)
graingert added a commit to graingert/six that referenced this issue Nov 25, 2019
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

No branches or pull requests

1 participant