Guido van Rossum
5baf4bc978
Moved things around a bit in interact(), so outout is processed before
...
input. When an EOF is read, break out of the loop instead of (by
default) writing an empty line (which doesn't do much good). Don't
close self when falling through the loop.
1997-12-29 20:05:45 +00:00
Guido van Rossum
ccb5ec62e1
Added expect() method which takes a list of regular expressions and an
...
optional timeout. Also moved some imports around.
1997-12-24 22:24:19 +00:00
Guido van Rossum
00f9fea288
Use string.replace instead of regsub.[g]sub.
1997-12-24 21:18:41 +00:00
Guido van Rossum
b9b50eb7e0
Decided to add the telnet library that I wrote long ago (it's still in
...
the Demos/cwilib directory). Converted comments to doc strings and
used default arguments instead of *args. Updated the example.
1997-12-24 21:07:04 +00:00