diff options
author | Red_M <git@red-m.net> | 2019-10-31 20:38:52 +1000 |
---|---|---|
committer | Red_M <git@red-m.net> | 2019-10-31 20:38:52 +1000 |
commit | e0b05a96251dcea4d2695fac10bfabd09e2f605c (patch) | |
tree | 93eb09f9e8b83b616ec18720136d7d056b4e7689 | |
parent | 255bd497c1e371a6d09253bb5bb01ebb62dbadbf (diff) | |
download | pexpect-git-e0b05a96251dcea4d2695fac10bfabd09e2f605c.tar.gz |
Fix last commit.
-rw-r--r-- | pexpect/pty_spawn.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pexpect/pty_spawn.py b/pexpect/pty_spawn.py index 70357c3..8e28ca7 100644 --- a/pexpect/pty_spawn.py +++ b/pexpect/pty_spawn.py @@ -213,8 +213,8 @@ class spawn(SpawnBase): s.append(repr(self)) s.append('command: ' + str(self.command)) s.append('args: %r' % (self.args,)) - s.append('buffer (last %s chars): %r' % self.str_last_chars,self.buffer[-self.str_last_chars:]) - s.append('before (last %s chars): %r' % self.str_last_chars,self.before[-self.str_last_chars:] if self.before else '') + s.append('buffer (last %s chars): %r' % (self.str_last_chars,self.buffer[-self.str_last_chars:])) + s.append('before (last %s chars): %r' % (self.str_last_chars,self.before[-self.str_last_chars:] if self.before else '')) s.append('after: %r' % (self.after,)) s.append('match: %r' % (self.match,)) s.append('match_index: ' + str(self.match_index)) |