You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
593 B

  1. diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
  2. index 7841b99..1e0d3b3 100644
  3. --- a/Lib/lib2to3/refactor.py
  4. +++ b/Lib/lib2to3/refactor.py
  5. @@ -37,6 +37,12 @@ def get_all_fix_names(fixer_pkg, remove_prefix=True):
  6. if remove_prefix:
  7. name = name[4:]
  8. fix_names.append(name[:-3])
  9. + if name.startswith("fix_") and name.endswith(".pyc"):
  10. + if remove_prefix:
  11. + name = name[4:]
  12. + name = name[:-4]
  13. + if name not in fix_names:
  14. + fix_names.append(name)
  15. return fix_names