Permalink
Browse files

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

… must end in a newline.

closes gh-409
closes gh-424
closes gh-427
closes gh-431
  • Loading branch information...
1 parent dac760e commit f02a1aa88465d552ba86c545f3432861a83e805e @takluyver takluyver committed with minrk 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 f02a1aa

Please sign in to comment.