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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

use directly OSError everywhere #37070

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

fchapoton
Copy link
Contributor

@fchapoton fchapoton commented Jan 16, 2024

fixed by ruff --fix --select=UP024 src/

OSError has replaced several errors since python 3.3:

https://stackoverflow.com/questions/29347790/difference-between-ioerror-and-oserror

https://peps.python.org/pep-3151/#confusing-set-of-os-related-exceptions

馃摑 Checklist

  • The title is concise, informative, and self-explanatory.
  • The description explains in detail what this PR is about.

Copy link

Documentation preview for this PR (built with commit 16799d3; changes) is ready! 馃帀

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

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

LGTM.

@fchapoton
Copy link
Contributor Author

merci beaucoup David. Et bonne ann茅e !

@vbraun vbraun merged commit cae844b into sagemath:develop Jan 22, 2024
20 of 22 checks passed
@fchapoton fchapoton deleted the use_OS_error branch January 22, 2024 08:36
@mkoeppe mkoeppe added this to the sage-10.3 milestone Mar 7, 2024
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

4 participants