Zac-HD/shed

pyupgrade 2.32.0 removed _fix_py36_plus

spl opened this issue · 2 comments

spl commented

In asottile/pyupgrade#627, _fix_py36_plus was removed from pyupgrade/_main.py, and pyupgrade was released as 2.32.0 (asottile/pyupgrade@v2.31.1...v2.32.0). This causes shed to fail for us with module 'pyupgrade._main' has no attribute '_fix_py36_plus' (terminusdb/terminusdb-client-python#298).

Hi @Zac-HD pyupgrade has removed _fix_py36_plus in version 2.32.0 as it removes support to Python 3.6 or below. This line

source_code = pyupgrade._main._fix_py36_plus(source_code, min_version=pyupgrade_min)

will cause the error above. PR coming in soon.

OK, the solution was to

  1. update pinned deps in e93b8d9 so that CI would detect the problem,
  2. delete the call to _fix_py36_plus in bb16293 because all that logic is now part of the _fix_plugins call above
  3. release shed 0.9.5 from dfe49f2

Thanks very much for reporting this so promptly!