def communicate_into(self, stdin_var, stderr_var, input=None): """Like Response.read, but stores the result in the remote variable ``dest``""" library.check_valid_name(stdin_var) library.check_valid_name(stderr_var) self._ssh.python.execute("%s, %s=%r.communicate(%r)" % (stdin_var, stderr_var, input))
def read_into(self, dest, size=None): """Like Response.read, but stores the result in the remote variable ``dest``""" library.check_valid_name(dest) self._ssh.python.execute("%s=%r.read(%r)" % (dest, self, size))