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:
commit
65375a5168
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user