@task
def code_verify(revision=None):
  """Verify the code for a given revision (latest if None).
  We only check the symlink. TODO: find a way to validate the code itself."""
  if is_old_code():
    fprint('installed code is in the old style (directory instead of symlink). Manual intervention required')
    return False
  rev = revision or hg_revision()
  if exists('~/viewfinder.%s' % rev):
    fprint('Code at revision %s is installed' % rev)
    return True
  else:
    fprint('Code at revision %s is not installed' * rev)
    return False
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/code_verify/operator `%` -> `*`