- Oct 22, 2003
-
-
Per Cederqvist authored
(expect_before): Ditto.
-
Per Cederqvist authored
are now set when a match or eof occurs. Document controller.
-
Per Cederqvist authored
"match".
-
Per Cederqvist authored
(controller.__init__): New argument: timeout_raises_exception. (controller.loop): Handle the timeout_raises_exception attribute. (controller.re): Set the consumed attribute of the expectable. (controller.eof): Ditto. Set the match attribute to None, not to the consumed string.
-
- Oct 19, 2003
-
-
Per Cederqvist authored
classes. Document expectable. Let the user class automatically restore tty settings via atexit.
-
Per Cederqvist authored
(expectable.close): New method.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
(_saved_mode): New variable. (_save): New function. Arrange to call _restore via the atexit module. (_restore): New function. (user.__init__): Default to not modifying the termios setting. Call _save before changing them. (user.close): Use _restore to restore the settings.
-
- Oct 18, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- Oct 17, 2003
-
-
Per Cederqvist authored
Don't block when data might be available in the buffer.
-
Per Cederqvist authored
-
Per Cederqvist authored
(__all__): New constant. (RAW): New constant. (CBREAK): New constant. (COOKED): New constant. (user): New class. (user.__init__): New method. (user.send): New method. (user.close): New method.
-
Per Cederqvist authored
previous run through the loop. It may have left parseable data in a buffer.
-
- Oct 14, 2003
-
-
Per Cederqvist authored
callback functions) to exit the loop.
-
Per Cederqvist authored
-
Per Cederqvist authored
(CONT): Removed. (BREAK): Added. (controller.__init__): Remove the __done attribute. (controller.loop): The default is now to continue. Break only if the user explicitly breaks out of the loop. All references to __done removed. (controller.re): Remove __done accesses. (controller.eof): Ditto. (controller.timeout): Ditto. (controller.cont): Method removed. (controller.__run_expectations): Default is to continue, unless the callback returns BREAK. (expect_after): A callback should return None or BREAK; not CONT. (expect): A missing callback is treated as a callback that returns BREAK.
-
- Oct 12, 2003
-
-
Per Cederqvist authored
package layout.
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
(__all__): New constant. (controller): New name for former class impl.
-
Per Cederqvist authored
(__all__): New constant.
-
Per Cederqvist authored
-
- Oct 11, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
(impl.re): Ditto.
-
Per Cederqvist authored
-
- Oct 10, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
expect module. I don't really like it, but if you don't want to use a pre-processor I guess you cannot do anything much better than this.
-
- Oct 09, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
- Oct 07, 2003
-
-
Per Cederqvist authored
-
Per Cederqvist authored
-
Per Cederqvist authored
(telnet.close): New method. (telnet.fileno): New method removed. (impl.re): Use repr to format the strings in the debug statement.
-
Per Cederqvist authored
-
Per Cederqvist authored
fill_buffer. (expectable.fill_buffer): Extract the reading to the _read method, so that it can be overridden. (telnet): New class. (telnet.__init__): New method. (telnet._read): New method. (telnet.send): New method. (telnet.fileno): New method.
-