1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

Replace deprecated imp module with importlib for Python compatibility

This commit is contained in:
DHARMA TEJA 2024-09-08 05:46:15 +05:30
parent c7e7e1d884
commit 46af640682
2 changed files with 28 additions and 1 deletions

View File

@ -14,7 +14,8 @@ try:
module_spec.loader.exec_module(module)
return module
except ImportError:
from imp import load_source
# This block is no longer needed if importlib.util is always available.
pass
class Settings(dict):

View File

@ -0,0 +1,26 @@
# The Fuck settings file
#
# The rules are defined as in the example bellow:
#
# rules = ['cd_parent', 'git_push', 'python_command', 'sudo']
#
# The default values are as follows. Uncomment and change to fit your needs.
# See https://github.com/nvbn/thefuck#settings for more information.
#
# rules = [<const: All rules enabled>]
# exclude_rules = []
# wait_command = 3
# require_confirmation = True
# no_colors = False
# debug = False
# priority = {}
# history_limit = None
# alter_history = True
# wait_slow_command = 15
# slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant']
# repeat = False
# instant_mode = False
# num_close_matches = 3
# env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}
# excluded_search_path_prefixes = []