mirror of
https://github.com/clearml/wexpect-venv
synced 2025-02-07 13:30:56 +00:00
[CLN][REM] Remove unused functions 03
This commit is contained in:
parent
c8c8922dda
commit
df208413c6
27
wexpect.py
27
wexpect.py
@ -1431,15 +1431,6 @@ class spawn_windows (spawn_unix):
|
|||||||
c = self.wtty.write(s)
|
c = self.wtty.write(s)
|
||||||
return c
|
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):
|
def sendintr(self):
|
||||||
"""This sends a SIGINT to the child. It does not require
|
"""This sends a SIGINT to the child. It does not require
|
||||||
the SIGINT to be the first character on a line. """
|
the SIGINT to be the first character on a line. """
|
||||||
@ -2052,24 +2043,6 @@ class Wtty:
|
|||||||
else:
|
else:
|
||||||
return win32process.GetExitCodeProcess(self.__childProcess) == win32con.STILL_ACTIVE
|
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
|
class ConsoleReader: # pragma: no cover
|
||||||
|
|
||||||
def __init__(self, path, pid, tid, env = None, cp=None, logdir=None):
|
def __init__(self, path, pid, tid, env = None, cp=None, logdir=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user