def _gh_org_edit_team(self, id, name, permission=None):
        data = {'name': name}
        if permission is not None:
            data['permission'] = permission
        assert permission in ['pull', 'push', 'admin']
        return self._patch_request('/teams/%s' % id, json.dumps(data))
dataset/ETHPy150Open garbas/github-collective/githubcollective/github.py/Github._gh_org_edit_team/original