def remove_team_member(name, team_name, profile='github'):
 team = get_team(team_name, profile=profile)
 if (not team):
  log.error('Team {0} does not exist'.format(team_name))
  return False
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  team = organization.get_team(team['id'])
  member = client.get_user(name)
 except UnknownObjectException as e:
  log.exception('Resource not found: {0}'.format(team['id']))
  return False
 if (not hasattr(team, 'remove_from_members')):
  return (False, 'PyGithub 1.26.0 or greater is required for team management, please upgrade.')
 team.remove_from_members(member)
 return (not team.has_in_members(member))

def remove_team_member ( name , team_name , profile = 'github' ) : team = get_team ( team_name , profile = profile ) if ( not team ) : log . error ( 'Team {0} does not exist' . format ( team_name ) ) return False try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) team = organization . get_team ( team [ 'id' ] ) member = client . get_user ( name ) except UnknownObjectException as e : log . exception ( 'Resource not found: {0}' . format ( team [ 'id' ] ) ) return False if ( not hasattr ( team , 'remove_from_members' ) ) : return ( False , 'PyGithub 1.26.0 or greater is required for team management, please upgrade.' ) team . remove_from_members ( member ) return ( not team . has_in_members ( member ) )
removes a team member from a team with team_name .