* Stuart Prescott <stuart at debian.org>, 2012-06-29, 00:57: >+ p = subprocess.Popen(['unxz', '--stdout'], >+ stdin=subprocess.PIPE, stdout=subprocess.PIPE, >+ universal_newlines=False) >+ fh2 = io.BytesIO(p.communicate(self.__member.read())[0]) What if unxz fails to decompress the file? -- Jakub Wilk