##// END OF EJS Templates
Fix subtle bug with error message on Python 2.6 - code to be compiled must end in a newline....
Thomas Kluyver -
Show More
@@ -2130,7 +2130,7 b' class InteractiveShell(Configurable, Magic):'
2130 prefilter_failed = False
2130 prefilter_failed = False
2131 if len(cell.splitlines()) == 1:
2131 if len(cell.splitlines()) == 1:
2132 try:
2132 try:
2133 cell = self.prefilter_manager.prefilter_lines(cell)
2133 cell = self.prefilter_manager.prefilter_line(cell)
2134 except AliasError as e:
2134 except AliasError as e:
2135 error(e)
2135 error(e)
2136 prefilter_failed=True
2136 prefilter_failed=True
@@ -105,10 +105,10 b' In [7]: autocall 0'
105 Automatic calling is: OFF
105 Automatic calling is: OFF
106
106
107 In [8]: cos pi
107 In [8]: cos pi
108 File "<ipython-input-8-586f1104ea44>", line 1
108 File "<ipython-input-8-6bd7313dd9a9>", line 1
109 cos pi
109 cos pi
110 ^
110 ^
111 SyntaxError: unexpected EOF while parsing
111 SyntaxError: invalid syntax
112
112
113
113
114 In [9]: cos(pi)
114 In [9]: cos(pi)
General Comments 0
You need to be logged in to leave comments. Login now