Noah Spurrier
-$Revision: 1.1 $
-$Date: 2002/11/22 11:26:34 $
+$Revision: 1.2 $
+$Date: 2002/11/22 11:27:39 $
"""
import os, sys
import select
Currently pexpect is intended for UNIX operating systems (including OS-X)."""
__version__ = '0.94'
-__revision__ = '$Revision: 1.1 $'
+__revision__ = '$Revision: 1.2 $'
__all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn',
'__version__', '__revision__']
self.match = None
raise
-# def expect_eof(self, timeout = None):
-# """This reads from the child until the end of file is found.
-# A timeout exception may be thrown.
-# """
-# if timeout is None:
-# timeout = self.timeout
-#
-# incoming = ''
-# self.match = self.matched = None
-# try:
-# while 1:
-# c = self.read(1, timeout)
-# incoming = incoming + c
-# except EOF:
-# self.before = incoming
-# return 0
-# except: # save incoming data (usefull for debugging)
-# self.before = incoming
-# raise
-
def read(self, n, timeout = None):
"""This reads up to n characters from the child application.
It includes a timeout. If the read does not complete within the
break
-## def send_human(self, text, delay_min = 0, delay_max = 1):
-## pass
-## def spawn2(self, command, args):
-## """return pid, fd_stdio, fd_stderr
-## """
-## pass
-## def expect_ex(self, string_match, local_timeout = None):
-## """This is like expect(), except that instead of regular expression patterns
-## it matches on exact strings.
-## """
-## pass
-## # Return (data_read)
-
-
def which (filename):
"""This takes a given filename and tries to find it in the
environment path and check if it is executable.