summaryrefslogtreecommitdiff
path: root/pexpect/spawnbase.py
diff options
context:
space:
mode:
authordluyer <53582923+dluyer@users.noreply.github.com>2019-08-02 12:07:54 -0700
committerGitHub <noreply@github.com>2019-08-02 12:07:54 -0700
commit1ed3ac8b2fd45e6cbab0734c9acc37f7f617fba3 (patch)
treea596b5a0757b8df790d9ebca5da01d2d4f5a447e /pexpect/spawnbase.py
parentfa084459198f7e9f4a2f346ea8bdac2ca102bc87 (diff)
downloadpexpect-git-1ed3ac8b2fd45e6cbab0734c9acc37f7f617fba3.tar.gz
Update spawnbase.py
Diffstat (limited to 'pexpect/spawnbase.py')
-rw-r--r--pexpect/spawnbase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pexpect/spawnbase.py b/pexpect/spawnbase.py
index 63c0b42..59e9057 100644
--- a/pexpect/spawnbase.py
+++ b/pexpect/spawnbase.py
@@ -120,6 +120,9 @@ class SpawnBase(object):
self.async_pw_transport = None
# This is the read buffer. See maxread.
self._buffer = self.buffer_type()
+ # The buffer may be trimmed for efficiency reasons. This is the
+ # untrimmed buffer, used to create the before attribute.
+ self._before = self.buffer_type()
def _log(self, s, direction):
if self.logfile is not None: