summaryrefslogtreecommitdiff
path: root/pexpect
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect')
-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))