diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index bda19c7..da7de59 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2130,7 +2130,7 @@ class InteractiveShell(Configurable, Magic): 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 diff --git a/IPython/lib/tests/test_irunner.py b/IPython/lib/tests/test_irunner.py index 2be81f8..2827c3f 100755 --- a/IPython/lib/tests/test_irunner.py +++ b/IPython/lib/tests/test_irunner.py @@ -105,10 +105,10 @@ In [7]: autocall 0 Automatic calling is: OFF In [8]: cos pi - File "", line 1 + File "", line 1 cos pi ^ -SyntaxError: unexpected EOF while parsing +SyntaxError: invalid syntax In [9]: cos(pi)