diff -u -p -r thefuck-3.32.orig/setup.py thefuck-3.32/setup.py --- thefuck-3.32.orig/setup.py 2022-01-02 22:45:09.000000000 +0100 +++ thefuck-3.32/setup.py 2026-10-17 21:02:23.413223176 +0200 @@ -1,18 +1,7 @@ #!/usr/bin/env python from setuptools import setup, find_packages -import pkg_resources import sys import os -import fastentrypoints - - -try: - if int(pkg_resources.get_distribution("pip").version.split('.')[0]) < 6: - print('pip older than 6.0 not supported, please upgrade pip with:\n\n' - ' pip install -U pip') - sys.exit(-1) -except pkg_resources.DistributionNotFound: - pass if os.environ.get('CONVERT_README'): import pypandoc diff -u -p -r thefuck-3.32.orig/thefuck/conf.py thefuck-3.32/thefuck/conf.py --- thefuck-3.32.orig/thefuck/conf.py 2022-01-02 22:45:09.000000000 +0100 +++ thefuck-3.32/thefuck/conf.py 2026-10-17 21:02:23.412966497 +0200 @@ -1,4 +1,3 @@ -from imp import load_source import os import sys from warnings import warn @@ -6,6 +5,15 @@ from six import text_type from . import const from .system import Path +import importlib.util + + +def load_source(name, pathname): + spec = importlib.util.spec_from_file_location(name, pathname) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + class Settings(dict): def __getattr__(self, item): diff -u -p -r thefuck-3.32.orig/thefuck/system/unix.py thefuck-3.32/thefuck/system/unix.py --- thefuck-3.32.orig/thefuck/system/unix.py 2022-01-02 22:45:09.000000000 +0100 +++ thefuck-3.32/thefuck/system/unix.py 2026-10-17 21:02:23.413165447 +0200 @@ -3,7 +3,7 @@ import sys import tty import termios import colorama -from distutils.spawn import find_executable +from shutil import which as find_executable from .. import const init_output = colorama.init diff -u -p -r thefuck-3.32.orig/thefuck/types.py thefuck-3.32/thefuck/types.py --- thefuck-3.32.orig/thefuck/types.py 2022-01-02 22:45:09.000000000 +0100 +++ thefuck-3.32/thefuck/types.py 2026-10-17 21:02:23.413089167 +0200 @@ -1,4 +1,3 @@ -from imp import load_source import os import sys from . import logs @@ -9,6 +8,15 @@ from .exceptions import EmptyCommand from .utils import get_alias, format_raw_script from .output_readers import get_output +import importlib.util + + +def load_source(name, pathname): + spec = importlib.util.spec_from_file_location(name, pathname) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + return module + class Command(object): """Command that should be fixed."""