Incomplete fixed to allow IPython to run on Jython.
Seems to be a problem with the decorators used in IPython/core/history.py