'Retrieve the license specified by the name.
:param string name: (required), name of license
:returns: :class:`License <github3.licenses.License>`'

def license(self, name):

    url = self._build_url(u'licenses', name)
    json = self._json(self._get(url, headers=License.CUSTOM_HEADERS), 200)
    return self._instance_or_null(License, json)
