1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-14 06:38:32 +00:00

Update conf.py

This commit is contained in:
Leonid 2025-02-06 10:44:12 +03:00 committed by GitHub
parent 726470fd8a
commit f406815209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,13 @@ try:
module_spec.loader.exec_module(module)
return module
except ImportError:
from importlib import load_source
py_version = sys.version_info
major = py_version.major
minor = py_version.minor
if major == 3 and minor < 12:
from imp import load_source
else:
from importlib import load_source
class Settings(dict):