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
if
The 'versioned branch' fixer currently removes comments after a dropped if block:
import sys -if sys.version_info < (3, 2): - print("3.2") - -# let's go print("ok")
The comment is outside of the block and should be preserved.
(Just fixed a similar issue in django-upgrade: adamchainz/django-upgrade#495 .)
The text was updated successfully, but these errors were encountered:
there's a duplicate somewhere. this is relatively unfixable because there's no definitive end of a block
Sorry, something went wrong.
Isn't this sufficient? #971 . It seems to, at least.
This could be the duplicate issue which @asottile mentioned: #931.
But I think @adamchainz is right, @asottile can you recheck this please?
there's a case that this creates a syntax error, I can't remember the exact one
No branches or pull requests
The 'versioned branch' fixer currently removes comments after a dropped
if
block:The comment is outside of the block and should be preserved.
(Just fixed a similar issue in django-upgrade: adamchainz/django-upgrade#495 .)
The text was updated successfully, but these errors were encountered: