summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRed_M <git@red-m.net>2019-10-31 20:38:52 +1000
committerRed_M <git@red-m.net>2019-10-31 20:38:52 +1000
commite0b05a96251dcea4d2695fac10bfabd09e2f605c (patch)
tree93eb09f9e8b83b616ec18720136d7d056b4e7689
parent255bd497c1e371a6d09253bb5bb01ebb62dbadbf (diff)
downloadpexpect-git-e0b05a96251dcea4d2695fac10bfabd09e2f605c.tar.gz
Fix last commit.
-rw-r--r--pexpect/pty_spawn.py4
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))