parameters: (self, write_to)
docstring: Construct a StdoutRewrite that writes to `write_to`.
docstring_summary: Construct a StdoutRewrite that writes to `write_to`.
docstring_tokens: Construct a StdoutRewrite that writes to write_to .
function: def __init__(self, write_to):
          """Construct a StdoutRewrite that writes to `write_to`."""
  
          self.write_to = write_to
          self.saved_stdout = sys.stdout
          sys.stdout = self
function_tokens: def __init__ ( self , write_to ) : self . write_to = write_to self . saved_stdout = sys . stdout sys . stdout = self