def get_xritdecompress_outfile(stdout):
    """Analyse the output of the xRITDecompress command call and return the file."""
    outfile = b''
    for line in stdout:
        try:
            k, v = [x.strip() for x in line.split(b':', 1)]
        except ValueError:
            break
        if k == b'Decompressed file':
            outfile = v
            break

    return outfile
def get_xritdecompress_outfile ( stdout ) : outfile = b'' for line in stdout : try : k , v = [ x . strip ( ) for x in line . split ( b':' , 1 ) ] except ValueError : break if k == b'Decompressed file' : outfile = v break return outfile
Analyse the output of the xRITDecompress command call and return the file.