':calls: `GET /legacy/repos/search/:keyword <http://developer.github.com/v3/search/legacy>`_
:param keyword: string
:param language: string
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`'

def legacy_search_repos(self, keyword, language=github.GithubObject.NotSet):

    assert isinstance(keyword, (str, unicode)), keyword
    assert ((language is github.GithubObject.NotSet) or isinstance(language, (str, unicode))), language
    args = ({} if (language is github.GithubObject.NotSet) else {'language': language})
    return Legacy.PaginatedList(('/legacy/repos/search/' + urllib.quote_plus(keyword, safe='/%:><')), args, self.__requester, 'repositories', Legacy.convertRepo, github.Repository.Repository)
