'Iterate over open source licenses.
:returns: generator of :class:`License <github3.licenses.License>`'

def licenses(self, number=(-1), etag=None):

    url = self._build_url(u'licenses')
    return self._iter(int(number), url, License, etag=etag, headers=License.CUSTOM_HEADERS)
