##// END OF EJS Templates
Backport PR #9955: Catch UnicodeDecodeError from file lying about its encoding...
Backport PR #9955: Catch UnicodeDecodeError from file lying about its encoding Closes gh-9954 I'd like to show a more useful error, but we're several layers away from the code that knows the filename, and I don't want to duplicate a load of code from the traceback module. This prevents it from crashing IPython, at least.

File last commit:

r21298:3800dd18
r22896:c86e43f8
Show More
consoleapp.py
12 lines | 384 B | text/x-python | PythonLexer
Min RK
move IPython.consoleapp to jupyter_client
r21025 """
Shim to maintain backwards compatibility with old IPython.consoleapp imports.
Paul Ivanov
refactoring common code out of qtconsole
r5603 """
Paul Ivanov
remove load_connection_file from consoleapp...
r16497 # Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
Paul Ivanov
refactoring common code out of qtconsole
r5603
Min RK
move IPython.consoleapp to jupyter_client
r21025 from warnings import warn
Paul Ivanov
refactoring common code out of qtconsole
r5603
Min RK
move IPython.consoleapp to jupyter_client
r21025 warn("The `IPython.consoleapp` package has been deprecated. "
"You should import from jupyter_client.consoleapp instead.")
Paul Ivanov
refactoring common code out of qtconsole
r5603
Min RK
move IPython.consoleapp to jupyter_client
r21025 from jupyter_client.consoleapp import *