Show More
@@ -758,10 +758,11 b' class IPythonInputSplitter(InputSplitter):' | |||||
758 |
|
758 | |||
759 | try: |
|
759 | try: | |
760 | push = super(IPythonInputSplitter, self).push |
|
760 | push = super(IPythonInputSplitter, self).push | |
|
761 | buf = self._buffer | |||
761 | for line in lines_list: |
|
762 | for line in lines_list: | |
762 |
if self._is_complete or not |
|
763 | if self._is_complete or not buf or \ | |
763 |
( |
|
764 | (buf and (buf[-1].rstrip().endswith(':') or | |
764 |
|
|
765 | buf[-1].rstrip().endswith(',')) ): | |
765 | for f in transforms: |
|
766 | for f in transforms: | |
766 | line = f(line) |
|
767 | line = f(line) | |
767 |
|
768 |
General Comments 0
You need to be logged in to leave comments.
Login now