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

Run pyupgrade to simplify code and use Python 3.6 syntax #536

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Run pyupgrade to simplify code and use Python 3.6 syntax #536

merged 1 commit into from
Dec 16, 2020

Conversation

jdufresne
Copy link
Contributor

pyugrade is a command line tool to automatically update Python syntax to
modern usage and patterns. For additional details, see:

https://github.com/asottile/pyupgrade

Changes made by the tool:

  • Use short Python3 super() syntax.
  • Use f-strings when they are simple and more readable.
  • Drop Python 2 u prefix from strings.
  • Drop "r" argument from open(). It is the default and so specifying it is
    unnecessary.

pyugrade is a command line tool to automatically update Python syntax to
modern usage and patterns. For additional details, see:

https://github.com/asottile/pyupgrade

Changes made by the tool:

- Use short Python3 super() syntax.
- Use f-strings when they are simple and more readable.
- Drop Python 2 u prefix from strings.
- Drop "r" argument from open(). It is the default and so specifying it is
  unnecessary.
@jpadilla jpadilla merged commit 9324d6f into jpadilla:master Dec 16, 2020
@jpadilla jpadilla added this to the v2.0.0 milestone Dec 16, 2020
@jdufresne jdufresne deleted the pyupgrade branch December 18, 2020 00:50
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.

None yet

2 participants