From 7350ef9c2c519270f6aa1c621d65ce743b07c834 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Wed, 22 Oct 2003 06:22:47 +0000 Subject: [PATCH] Adjusted to new API of timeout(): use the "consumed" attribute, not "match". --- demo/dualftp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/dualftp.py b/demo/dualftp.py index 927ac50..fcfb0db 100644 --- a/demo/dualftp.py +++ b/demo/dualftp.py @@ -69,7 +69,7 @@ pcl_expect.expect_after([]) x = pcl_expect.controller() while x.loop(): if x.eof(sunet): - print "SUNET final output:", sunet.match + print "SUNET final output:", sunet.consumed sunet.close() break elif x.timeout(): @@ -79,7 +79,7 @@ while x.loop(): x = pcl_expect.controller() while x.loop(): if x.eof(funet): - print "FUNET final output:", funet.match + print "FUNET final output:", funet.consumed funet.close() break elif x.timeout(): -- GitLab