summaryrefslogtreecommitdiff
path: root/pexpect/async.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/async.py')
-rw-r--r--pexpect/async.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pexpect/async.py b/pexpect/async.py
index ad75994..f7ad32b 100644
--- a/pexpect/async.py
+++ b/pexpect/async.py
@@ -37,15 +37,15 @@ class PatternWaiter(asyncio.Protocol):
def data_received(self, data):
spawn = self.expecter.spawn
- s = spawn._decoder.decode(data)
- spawn._log(s, 'read')
+ ucs = spawn._decoder.decode(data)
+ spawn._log(ucs, 'read')
if self.fut.done():
- spawn.buffer += data
+ spawn.buffer += ucs
return
try:
- index = self.expecter.new_data(data)
+ index = self.expecter.new_data(ucs)
if index is not None:
# Found a match
self.found(index)