def countFileChunks(zipinfo, chunksize):
 (count, extra) = divmod(zipinfo.file_size, chunksize)
 if (extra > 0):
  count += 1
 return (count or 1)

def countFileChunks ( zipinfo , chunksize ) : ( count , extra ) = divmod ( zipinfo . file_size , chunksize ) if ( extra > 0 ) : count += 1 return ( count or 1 )
count the number of chunks that will result from the given l{zipinfo} .