summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2015-09-12 11:43:29 +0100
committerThomas Kluyver <takowl@gmail.com>2015-09-12 11:46:18 +0100
commit9681f4c10e54ac10f611bae827c33a68d81a98af (patch)
treefd684639ffd67f1cf38d51af192348302ed6203e
parent3654b5b9b3286c34cb02a93504199e93bb90576c (diff)
downloadpexpect-git-9681f4c10e54ac10f611bae827c33a68d81a98af.tar.gz
Fix for pxssh when reading unicode
-rw-r--r--pexpect/pxssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pexpect/pxssh.py b/pexpect/pxssh.py
index c5cbd35..fdae691 100644
--- a/pexpect/pxssh.py
+++ b/pexpect/pxssh.py
@@ -172,7 +172,7 @@ class pxssh (spawn):
# maximum time for reading the entire prompt
total_timeout = timeout_multiplier * 3.0
- prompt = b''
+ prompt = self.string_type()
begin = time.time()
expired = 0.0
timeout = first_char_timeout