I've had a chat with Paul and Min about this - if you make the change from upstream clear, this will be OK. To do this, we should:

- Add a note in the docstring at the top of the file explaining that this is an IPython patched version to work on other Python implementations.
- Add another comment just above this block to note that this is the change made in IPython.