ipython/ipython — pull request #877 by djv (2011-10-14 22:36:48+00:00)
Title: partial fix for issue #678

The patch handles the case of:

```
In [4]: >>> a = [1,
...: ... 2]

In [5]: a
Out[5]: [1, 2]
```

but not

```
In [3]: >>> a = [1
...: ... ,2]
File "", line 2
... ,2]
^
SyntaxError: invalid syntax
```

which happens to be valid in python.