Permalink
Browse files

Fix subtle bug with error message on Python 2.6 - code to be compiled…

… must end in a newline.
  • Loading branch information...
1 parent dac760e commit 15b71f60348bbd2e9c1bd2ca0d327de85d46da9e @takluyver committed May 11, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 IPython/core/interactiveshell.py
  2. +2 −2 IPython/lib/tests/test_irunner.py
@@ -2130,7 +2130,7 @@ def run_cell(self, raw_cell, store_history=True):
prefilter_failed = False
if len(cell.splitlines()) == 1:
try:
- cell = self.prefilter_manager.prefilter_lines(cell)
+ cell = self.prefilter_manager.prefilter_line(cell)
except AliasError as e:
error(e)
prefilter_failed=True
@@ -105,10 +105,10 @@ def testIPython(self):
Automatic calling is: OFF
In [8]: cos pi
- File "<ipython-input-8-586f1104ea44>", line 1
+ File "<ipython-input-8-6bd7313dd9a9>", line 1
cos pi
^
-SyntaxError: unexpected EOF while parsing
+SyntaxError: invalid syntax
In [9]: cos(pi)

0 comments on commit 15b71f6

Please sign in to comment.