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

Merge 7c9dd44c32084a5a8595d2bc65f2181d7d2f38ce into c7e7e1d884d3bb241ea6448f72a989434c2a35ec

This commit is contained in:
DJ Magar 2024-10-02 01:46:27 -05:00 committed by GitHub
commit 65375a5168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,8 +14,10 @@ try:
module_spec.loader.exec_module(module)
return module
except ImportError:
from imp import load_source
try:
from importlib.machinery import SourceFileLoader as load_source # Fix compat with Python 3.5+
except ImportError: # Fallback for really old (< 3.3) Python versions
from imp import load_source # type: ignore
class Settings(dict):
def __getattr__(self, item):