summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Edwards <joeledwards@gmail.com>2013-12-10 15:58:47 -0700
committerJoel Edwards <joeledwards@gmail.com>2013-12-11 07:37:57 -0700
commit5dca74030f9d1da7d35b0c9362e7adb7e11ac221 (patch)
tree270750e88829d6b953252a630319f8463009ebca
parent06c3c574c8b5d2fd5ba877413e826a2f33075d48 (diff)
downloadpexpect-5dca74030f9d1da7d35b0c9362e7adb7e11ac221.tar.gz
Cleanup of unused import and loop exit strategy in try_read_prompt
-rw-r--r--pexpect/pxssh.py5
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