summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pexpect/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pexpect/__init__.py b/pexpect/__init__.py
index 28291e1..753ec60 100644
--- a/pexpect/__init__.py
+++ b/pexpect/__init__.py
@@ -1765,8 +1765,7 @@ class spawnu(spawn):
return s
def _coerce_read_string(self, s):
- ucs = self._decoder.decode(s, final=False)
- return ucs if ucs is not None else self.string_type()
+ return self._decoder.decode(s, final=False)
def _send(self, s):
return os.write(self.child_fd, s.encode(self.encoding, self.errors))