def _get_bookmark(repo, name):
 try:
  return [x for x in _all_bookmarks(repo) if (x[0] == name)][0]
 except IndexError:
  return False

def _get_bookmark ( repo , name ) : try : return [ x for x in _all_bookmarks ( repo ) if ( x [ 0 ] == name ) ] [ 0 ] except IndexError : return False
find the requested bookmark in the specified repo .