Skip to content
Snippets Groups Projects
Commit ad027b8e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Implement expect_after and expect_before. Added the dualftp demo

program.
parent b891c3dc
No related branches found
No related tags found
No related merge requests found
2003-10-07 Per Cederqvist <ceder@ceder.dyndns.org>
Implement expect_after and expect_before.
* pcl_expect.py (RE): New constant.
(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.
Added the dualftp demo program.
* demo/dualftp.py: New demonstration. Get a directory listing
from two ftp servers, simultaneously.
2003-10-06 Per Cederqvist <ceder@ceder.dyndns.org> 2003-10-06 Per Cederqvist <ceder@ceder.dyndns.org>
Added the mandatory ftp demo. Every expect module needs one. Added the mandatory ftp demo. Every expect module needs one.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment