def force_delete(func, path, exc_info):
 os.chmod(path, stat.S_IWRITE)
 func(path)

def force_delete ( func , path , exc_info ) : os . chmod ( path , stat . S_IWRITE ) func ( path )
error handler for shutil .