def countFileChunks(zipinfo, chunksize):
    """
    Count the number of chunks that will result from the given L{ZipInfo}.

    @param zipinfo: a L{zipfile.ZipInfo} instance describing an entry in a zip
    archive to be counted.

    @return: the number of chunks present in the zip file.  (Even an empty file
    counts as one chunk.)
    @rtype: L{int}
    """
    count, extra = divmod(zipinfo.file_size, chunksize)
    if 0 > extra:
        count += 1
    return count or 1
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/zipstream.py/countFileChunks/swapped operands of `>`