Skip to content

Commit

Permalink
fix for broken input prompt stripping with multiline data structures …
Browse files Browse the repository at this point in the history
…(issue ipython#678)
  • Loading branch information
Daniel Velkov committed Oct 14, 2011
1 parent 245ec5f commit 2a60c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/core/inputsplitter.py
Expand Up @@ -760,7 +760,8 @@ def push(self, lines):
push = super(IPythonInputSplitter, self).push
for line in lines_list:
if self._is_complete or not self._buffer or \
(self._buffer and self._buffer[-1].rstrip().endswith(':')):
(self._buffer and (self._buffer[-1].rstrip().endswith(':') or\
self._buffer[-1].rstrip().endswith(','))):
for f in transforms:
line = f(line)

Expand Down

0 comments on commit 2a60c50

Please sign in to comment.