We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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==2.7.3
Running pyupgrade 1.py --py3-plus
pyupgrade 1.py --py3-plus
import six six.raise_from( ValueError("a long error message which makes Black add a magic comma after None"), None, )
syntax error:
import six raise ValueError("a long error message which makes Black add a magic comma after None") from None,
import six six.raise_from( ValueError("a long error message which makes Black add a magic comma after None"), None )
import six raise ValueError("a long error message which makes Black add a magic comma after None") from None
Now it's okay:
The text was updated successfully, but these errors were encountered:
probably the "best" way to fix this is with backslash insertion, as ugly as it is
Sorry, something went wrong.
In this particular case, Black's multilines triggered the bug, and to atone will happily mop up any ugly backslashes afterwards :)
via #361
No branches or pull requests
pyupgrade==2.7.3
Running
pyupgrade 1.py --py3-plus
With Black magic comma
Before
After
syntax error:
Without Black magic comma
Before
After
syntax error:
Both args on same line
Before
After
Now it's okay:
The text was updated successfully, but these errors were encountered: