From e6cb93f69b543926c76561d96c38614858873343 Mon Sep 17 00:00:00 2001 From: noah Date: Mon, 20 Aug 2012 19:44:55 +0000 Subject: Clarified a comment. git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@526 656d521f-e311-0410-88e0-e7920216d269 --- pexpect/pxssh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index 9dd67b3..7c06337 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -137,7 +137,8 @@ class pxssh (spawn): # If latency is worse than these values then this will fail. try: - self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt + # Clear the buffer before getting the prompt. + self.read_nonblocking(size=10000,timeout=1) except TIMEOUT: pass time.sleep(0.1) -- cgit v1.2.1