'return (outfile, errfile) and stop capturing.'

def done(self, save=True):

    outfile = errfile = None
    if (self.out and (not self.out.closed)):
        sys.stdout = self._oldout
        outfile = self.out
        outfile.seek(0)
    if (self.err and (not self.err.closed)):
        sys.stderr = self._olderr
        errfile = self.err
        errfile.seek(0)
    if self.in_:
        sys.stdin = self._oldin
    return (outfile, errfile)
