Пример #1
0
def merge(*iters):
    def pfunc(count, total):
        qprogress('bup: merging indexes (%d/%d)\r' % (count, total))

    def pfinal(count, total):
        progress('bup: merging indexes (%d/%d), done.\n' % (count, total))

    return merge_iter(iters, 1024, pfunc, pfinal, key='name')
Пример #2
0
def merge(*iters):
    def pfunc(count, total):
        qprogress("bup: merging indexes (%d/%d)\r" % (count, total))

    def pfinal(count, total):
        progress("bup: merging indexes (%d/%d), done.\n" % (count, total))

    return merge_iter(iters, 1024, pfunc, pfinal, key="name")
Пример #3
0
def idxmerge(idxlist, final_progress=True):
    """Generate a list of all the objects reachable in a PackIdxList."""
    def pfunc(count, total):
        qprogress('Reading indexes: %.2f%% (%d/%d)\r'
                  % (count*100.0/total, count, total))
    def pfinal(count, total):
        if final_progress:
            progress('Reading indexes: %.2f%% (%d/%d), done.\n'
                     % (100, total, total))
    return merge_iter(idxlist, 10024, pfunc, pfinal)
Пример #4
0
def idxmerge(idxlist, final_progress=True):
    """Generate a list of all the objects reachable in a PackIdxList."""
    def pfunc(count, total):
        qprogress('Reading indexes: %.2f%% (%d/%d)\r'
                  % (count*100.0/total, count, total))
    def pfinal(count, total):
        if final_progress:
            progress('Reading indexes: %.2f%% (%d/%d), done.\n'
                     % (100, total, total))
    return merge_iter(idxlist, 10024, pfunc, pfinal)