def add_source_to_zipfile(zip_out, result):
    ''' Add a LocalProcessedResult to zipfile via expand_and_add_csv_to_zipfile().
    
        Use result code_version to determine whether to expand; 3+ will do it.
    '''
    _, ext = splitext(result.filename)
    
    try:
        number = [int(n) for n in result.code_version.split('.')]
    except Exception as e:
        _L.info(u'Skipping street name expansion for {} (error {})'.format(result.source_base, e))
        do_expand = False # Be conservative for now.
    else:
        if [2, 13] >= number:
            do_expand = True # Expand for 2.13+.
        else:
            _L.info(u'Skipping street name expansion for {} (version {})'.format(result.source_base, result.code_version))
            do_expand = False

    if do_expand:
        is_us = (is_us_northeast(result) or is_us_midwest(result)
                 or is_us_south(result) or is_us_west(result))

        if not is_us:
            _L.info(u'Skipping street name expansion for {} (not U.S.)'.format(result.source_base))
            do_expand = False
    
    if ext == '.csv':
        with open(result.filename) as file:
            expand_and_add_csv_to_zipfile(zip_out, result.source_base + ext, file, do_expand)
    
    elif ext == '.zip':
        zip_in = ZipFile(result.filename, 'r')
        for zipinfo in zip_in.infolist():
            if zipinfo.filename == 'README.txt':
                # Skip README files when building collection.
                continue
            elif splitext(zipinfo.filename)[1] == '.csv':
                zipped_file = zip_in.open(zipinfo.filename)
                expand_and_add_csv_to_zipfile(zip_out, zipinfo.filename, zipped_file, do_expand)
            else:
                zip_out.writestr(zipinfo, zip_in.read(zipinfo.filename))
        zip_in.close()
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/collect.py/add_source_to_zipfile/swapped operands of `>=`