#NEWLINE# def repo_valid( path ) : #NEWLINE# #INDENT# '\n    utility function to check if borg can open a repository\n\n    :param path: the path to the repository\n    :returns: if borg can check the repository\n    ' #NEWLINE# with Repository ( str ( path ) , create = False ) as repository : #NEWLINE# #INDENT# return repository . check ( )