class _ProcessFile: """Python file object that returns the process exit status from the close method. """ def __init__(self, stream, process, name): self._file = PyFile(stream, "'%s'" % name) self._process = process def __getattr__(self, name): return getattr(self._file, name) def __repr__(self): return ` self._file ` def close(self): self._file.close() return self._process.waitFor() or None
class _ProcessFile: """Python file object that returns the process exit status from the close method. """ def __init__(self, stream, process, name): self._file = PyFile(stream, "'%s'" % name) self._process = process def __getattr__(self, name): return getattr(self._file, name) def __repr__(self): return `self._file` def close(self): self._file.close() return self._process.waitFor() or None