ForgeImporters/forgeimporters/google/__init__.py
def iter_issues(cls, project_name):
        """
        Iterate over all issues for a project,
        using paging to keep the responses reasonable.
        """
        extractor = cls(project_name)
        issue_ids = extractor.get_issue_ids(start=0)
        while issue_ids:
            for issue_id in sorted(issue_ids):
                try:
                    yield (int(issue_id), cls(project_name, 'issue', issue_id=issue_id))
                except HTTPError as e:
                    if e.code == 404:
                        log.warn('Unable to load GC issue: %s #%s: %s: %s',
                                 project_name, issue_id, e, e.url)
                        continue
                    else:
                        raise
            # get any new issues that were created while importing
            # (jumping back a few in case some were deleted and new ones added)
            new_ids = extractor.get_issue_ids(start=len(issue_ids) - 10)
            issue_ids = new_ids - issue_ids

        Iterate over all issues for a project,
        using paging to keep the responses reasonable.
        
Iterate over all issues for a project,
using paging to keep the responses reasonable.
Iterate over all issues for a project using paging to keep the responses reasonable .
def iter_issues(cls, project_name):
        extractor = cls(project_name)
        issue_ids = extractor.get_issue_ids(start=0)
        while issue_ids:
            for issue_id in sorted(issue_ids):
                try:
                    yield (int(issue_id), cls(project_name, 'issue', issue_id=issue_id))
                except HTTPError as e:
                    if e.code == 404:
                        log.warn('Unable to load GC issue: %s #%s: %s: %s',
                                 project_name, issue_id, e, e.url)
                        continue
                    else:
                        raise
            new_ids = extractor.get_issue_ids(start=len(issue_ids) - 10)
            issue_ids = new_ids - issue_ids
def iter_issues ( cls , project_name ) : extractor = cls ( project_name ) issue_ids = extractor . get_issue_ids ( start = 0 ) while issue_ids : for issue_id in sorted ( issue_ids ) : try : yield ( int ( issue_id ) , cls ( project_name , 'issue' , issue_id = issue_id ) ) except HTTPError as e : if e . code == 404 : log . warn ( 'Unable to load GC issue: %s #%s: %s: %s' , project_name , issue_id , e , e . url ) continue else : raise new_ids = extractor . get_issue_ids ( start = len ( issue_ids ) - 10 ) issue_ids = new_ids - issue_ids
Iterate over all issues for a project,
using paging to keep the responses reasonable.
Iterate over all issues for a project using paging to keep the responses reasonable .
"""
        Iterate over all issues for a project,
        using paging to keep the responses reasonable.
        """ # get any new issues that were created while importing # (jumping back a few in case some were deleted and new ones added)
cls
project_name