'Get the contents of a license for the repo
:returns: :class:`License <github3.licenses.License>`'

def license(self):

    url = self._build_url(u'license', base_url=self._api)
    json = self._json(self._get(url, headers=License.CUSTOM_HEADERS), 200)
    return self._instance_or_null(License, json)
