Commit 5967f6f8 authored by Zeyu DONG's avatar Zeyu DONG
Browse files

compatibility change for Py3.4

parent f2294211
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ def hot_load(module_name):
    
    # A bug of Python3.6- See https://github.com/python/cpython/pull/972
    if importlib._bootstrap._find_spec(module_name, None, module) is None:
        raise ModuleNotFoundError(f"spec not found for the module {module_name!r}", name=module_name)
        raise ModuleNotFoundError("spec not found for the module {name}".format(name=module_name), name=module_name)
    
    importlib.reload(module)
    return module