mirror of
https://github.com/novatiq/packages.git
synced 2026-04-24 21:14:40 +01:00
git is intollerant when it comes to fuzz. this fixes it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
16 lines
500 B
Diff
16 lines
500 B
Diff
--- a/Lib/lib2to3/refactor.py
|
|
+++ b/Lib/lib2to3/refactor.py
|
|
@@ -40,6 +40,12 @@ def get_all_fix_names(fixer_pkg, remove_prefix=True):
|
|
if remove_prefix:
|
|
name = name[4:]
|
|
fix_names.append(name[:-3])
|
|
+ if name.startswith("fix_") and name.endswith(".pyc"):
|
|
+ if remove_prefix:
|
|
+ name = name[4:]
|
|
+ name = name[:-4]
|
|
+ if name not in fix_names:
|
|
+ fix_names.append(name)
|
|
return fix_names
|
|
|
|
|