def send(self, s, end=os.linesep, signal=False):
if self.blocking:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>if not signal:<EOL><INDENT>if self._uses_subprocess:<EOL><INDENT>return self.subprocess.communicate(s + end)<EOL><DEDENT>else:<EOL><INDENT>return self.subprocess.send(s + end)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.subprocess.send_signal(s)<EOL><DEDENT>
Sends the given string or signal to std_in.