#NEWLINE# def delete_if_exists( path , remove = os . unlink ) : #NEWLINE# #INDENT# 'Delete a file, but ignore file not found error.\n\n    :param path: File to delete\n    :param remove: Optional function to remove passed path\n    ' #NEWLINE# try : #NEWLINE# #INDENT# remove ( remove ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# if ( e . errno != errno . ENOENT ) : #NEWLINE# #INDENT# raise