You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyupgrade currently does detect the if sys.version_info < (3, 5): syntax, it doesn't recognize the lesser but still sometimes used if sys.version_info[0] < 3: syntax in if or if-else blocks. It would be a nice feature if pyupgrade also could recognize and automatically replace such blocks.
pyupgrade currently does detect the
if sys.version_info < (3, 5):
syntax, it doesn't recognize the lesser but still sometimes usedif sys.version_info[0] < 3:
syntax in if or if-else blocks. It would be a nice feature if pyupgrade also could recognize and automatically replace such blocks.A few examples I encountered in the wild:
The text was updated successfully, but these errors were encountered: