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

pyupgrade: Update codebase to Python 3 syntax and features #28

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

EwoutH
Copy link
Contributor

@EwoutH EwoutH commented Mar 13, 2024

This PR updates the Python codebase to Python 3.0 syntax and features, removing old, deprecated and redundant code. pyupgrade 3.15.1 with --keep-percent-format was used.

Changes

  • Replace the IOError alias by OSError (PEP 3151, Python 3.3+)
  • Remove "r" parameter from open function, which is default
  • Remove the default subclass (object) when defining a class
  • Update typing to Python 3 syntax

This commit updates the Python code to Python 3 syntax and features, removing old, depreciated and redundant code. pyupgrade 3.15.1 was used.

Changes:
- Replace the IOError alias by OSError (PEP 3151, Python 3.3+)
- Remove "r" parameter from open function, which is default
- Remove the default subclass (object) when defining a class
- Update typing to Python 3 syntax
@michelbierlaire michelbierlaire merged commit 8c4975a into michelbierlaire:master Mar 27, 2024
6 checks passed
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.

2 participants