From df208413c6b98cefe962467a2aa877a059aa0f86 Mon Sep 17 00:00:00 2001 From: Benedek Racz Date: Fri, 22 Nov 2019 20:48:43 +0100 Subject: [PATCH] [CLN][REM] Remove unused functions 03 --- wexpect.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/wexpect.py b/wexpect.py index 77a5134..b69a9e7 100644 --- a/wexpect.py +++ b/wexpect.py @@ -1431,15 +1431,6 @@ class spawn_windows (spawn_unix): c = self.wtty.write(s) return c - ### UNIMPLEMENTED ### - def sendcontrol(self, char): - raise ExceptionPexpect ('sendcontrol() is not supported on windows') - - ### UNIMPLEMENTED ### - ### Parent buffer does not wait for endline by default. - def sendeof(self): - raise ExceptionPexpect ('sendeof() is not supported on windows') - def sendintr(self): """This sends a SIGINT to the child. It does not require the SIGINT to be the first character on a line. """ @@ -2052,24 +2043,6 @@ class Wtty: else: return win32process.GetExitCodeProcess(self.__childProcess) == win32con.STILL_ACTIVE - ###Broken### - def sendintr(self): - """Sends the sigint signal to the child.""" - - raise ExceptionPexpect ('sendintr() is currently not supported') - - self.switchTo() - try: - time.sleep(.15) - win32api.SetConsoleCtrlHandler(None, True) - time.sleep(.15) - win32api.win32console.GenerateConsoleCtrlEvent(0, 0) - time.sleep(.25) - except: - self.switchBack() - raise - self.switchBack() - class ConsoleReader: # pragma: no cover def __init__(self, path, pid, tid, env = None, cp=None, logdir=None):