(fileobj, chunks_sent)
return sum(chunks_sent), None
:param fileobj: content object written to the backend
    :param chunks_sent: list of chunk sizes sent
    :return: tuple(uncompressed_size, compressed_size or None)
:param fileobj: content object written to the backend
    :param chunks_sent: list of chunk sizes sent
    :return: tuple(uncompressed_size, compressed_size or None)
: param fileobj : content object written to the backend : param chunks_sent : list of chunk sizes sent : return : tuple ( uncompressed_size compressed_size or None )
def get_content_size(fileobj, chunks_sent):
    """
    :param fileobj: content object written to the backend
    :param chunks_sent: list of chunk sizes sent
    :return: tuple(uncompressed_size, compressed_size or None)
    """
    if isinstance(fileobj, GzipStream):
        return fileobj.content_length, sum(chunks_sent)

    return sum(chunks_sent), None
def get_content_size ( fileobj , chunks_sent ) : if isinstance ( fileobj , GzipStream ) : return fileobj . content_length , sum ( chunks_sent ) return sum ( chunks_sent ) , None