'Iterate over forks of this repository.
:param str sort: (optional), accepted values:
(\'newest\', \'oldest\', \'watchers\'), API default: \'newest\'
:param int number: (optional), number of forks to return. Default: -1
returns all forks
:param str etag: (optional), ETag from a previous request to the same
endpoint
:returns: generator of :class:`Repository <Repository>`'

def forks(self, sort=u'', number=(-1), etag=None):

    url = self._build_url(u'forks', base_url=self._api)
    params = {}
    if (sort in (u'newest', u'oldest', u'watchers')):
        params = {u'sort': sort}
    return self._iter(int(number), url, Repository, params, etag)
