diff options
author | Joel Edwards <joeledwards@gmail.com> | 2013-12-10 15:58:47 -0700 |
---|---|---|
committer | Joel Edwards <joeledwards@gmail.com> | 2013-12-11 07:37:57 -0700 |
commit | 5dca74030f9d1da7d35b0c9362e7adb7e11ac221 (patch) | |
tree | 270750e88829d6b953252a630319f8463009ebca | |
parent | 06c3c574c8b5d2fd5ba877413e826a2f33075d48 (diff) | |
download | pexpect-5dca74030f9d1da7d35b0c9362e7adb7e11ac221.tar.gz |
Cleanup of unused import and loop exit strategy in try_read_prompt
-rw-r--r-- | pexpect/pxssh.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py index cbc07fe..a068625 100644 --- a/pexpect/pxssh.py +++ b/pexpect/pxssh.py @@ -21,7 +21,6 @@ PEXPECT LICENSE ''' from pexpect import ExceptionPexpect, TIMEOUT, EOF, spawn -import struct import time import os @@ -170,9 +169,7 @@ class pxssh (spawn): expired = time.time() - begin # updated total time expired timeout = inter_char_timeout except TIMEOUT: - # when the host has finished sending its response, the - # inter_char_timeout will drop us out of the loop quickly - expired = total_timeout + break return prompt |