summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2015-10-13 08:54:48 +0100
committerThomas Kluyver <takowl@gmail.com>2015-10-13 08:54:48 +0100
commit209eec225dbdcb1c7f1a3ec889873dfd3ef09e82 (patch)
tree3164fcec8a859884b62c87c1421bf58b0df822cb
parent64f598334d464016b097cec19861fe924526998e (diff)
downloadpexpect-git-209eec225dbdcb1c7f1a3ec889873dfd3ef09e82.tar.gz
Async expect should process received data after decoding
-rw-r--r--pexpect/async.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/async.py b/pexpect/async.py
index ad75994..a798457 100644
--- a/pexpect/async.py
+++ b/pexpect/async.py
@@ -41,11 +41,11 @@ class PatternWaiter(asyncio.Protocol):
spawn._log(s, 'read')
if self.fut.done():
- spawn.buffer += data
+ spawn.buffer += s
return
try:
- index = self.expecter.new_data(data)
+ index = self.expecter.new_data(s)
if index is not None:
# Found a match
self.found(index)