(hashed_grammar, path, cache_path=None)
Returns a module or None, if it fails.
Returns a module or None, if it fails.
Returns a module or None if it fails .
def load_module(hashed_grammar, path, cache_path=None):
    """
    Returns a module or None, if it fails.
    """
    try:
        p_time = os.path.getmtime(path)
    except FileNotFoundError:
        return None

    try:
        module_cache_item = parser_cache[hashed_grammar][path]
        if p_time <= module_cache_item.change_time:
            return module_cache_item.node
    except KeyError:
        return _load_from_file_system(hashed_grammar, path, p_time, cache_path=cache_path)
def load_module ( hashed_grammar , path , cache_path = None ) : try : p_time = os . path . getmtime ( path ) except FileNotFoundError : return None try : module_cache_item = parser_cache [ hashed_grammar ] [ path ] if p_time <= module_cache_item . change_time : return module_cache_item . node except KeyError : return _load_from_file_system ( hashed_grammar , path , p_time , cache_path = cache_path )