- Oct 07, 2003
-
-
Per Cederqvist authored
(EOF): New constant. (TIMEOUT): New constant. (CONT): New constant. (BadArgs): New exception. (_expect_before): New variable. (_expect_after): New variable. (expectable.fill_buffer): Treat EIO as end-of-file. You apparently get this from a pty when the child exits, at least on Linux. (spawn.send): Log what is sent via debug. (impl.loop): Implement expect_before and expect_after. (_expect_before): Removed. (_expect_after): Removed. (impl.__expect_before): New method. (impl.__expect_after): New method. (impl.__run_expectations): New method. (expect_after): New function. (expect_before): New function. (__validate_expectations): New function.
-
Per Cederqvist authored
simultaneously.
-
- Oct 06, 2003
-
-
Per Cederqvist authored
mandatory ftp demo. Every expect module needs one.
-
Per Cederqvist authored
-
Per Cederqvist authored
for now it is written manually.
-
Per Cederqvist authored
-
Per Cederqvist authored
(stty_init): New variable. (set_cloexec_flag): New function. (spawn): New class. (spawn.__init__): New method. (spawn.send): New method. (spawn.close): New method.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- Oct 05, 2003
-
-
Per Cederqvist authored
classes seems to work now.
-
Per Cederqvist authored
(expectable.fill_buffer): Fix the eof handling. (expectable.eof): Ditto. (popen): New class. (popen.__init__): New method. (popen.close): New method. (impl): Lots of calls to debug added to all methods. (impl.loop): Fix syntax errors in expect_before and expect_after calls. Reset __acted. (impl.__fill_buffer): New method. (impl.re): Extract buffer-filling code to __fill_buffer. (impl.eof): New method. (_expect_before): New stub function. (_expect_after): New stub function. (debug): New stub function. (Top level): Add a very simple test code.
-
Per Cederqvist authored
-
Per Cederqvist authored
(timeout_raises_exception): New variable. (Timeout): New exception. (expectable): New class. (expectable.__init__): New method. (expectable.fileno): New method. (expectable.fill_buffer): New method. (expectable.eof): New method. (expectable.buffer): New method. (expectable.remove_first): New method. (impl): New class. (impl.__init__): New method. (impl.loop): New method. (impl.re): New method. (impl.timeout): New method. (impl.cont): New method.
-
- Oct 04, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
expect-like Python modules that are (more or less) available.
-