def _unmount(path, idempotent=False):
 try:
  run_process(['umount', '-l', path.path])
 except CalledProcessError as e:
  if (idempotent and (e.returncode in (1, 32))):
   pass
  else:
   raise UnmountError(blockdevice=path.path, source_message=e.output)

def _unmount ( path , idempotent = False ) : try : run_process ( [ 'umount' , '-l' , path . path ] ) except CalledProcessError as e : if ( idempotent and ( e . returncode in ( 1 , 32 ) ) ) : pass else : raise UnmountError ( blockdevice = path . path , source_message = e . output )
unmount the path .