##// END OF EJS Templates
Try locale encoding if stdin encoding is ascii....
Try locale encoding if stdin encoding is ascii. Starting the Qt console on Python 3, the kernel's stdin ends up with a .encoding of 'ascii' (whereas on Python 2 it is None). Since most platforms can handle a superset of ASCII, we may as well try locale.getpreferredencoding() in this case.

File last commit:

r2949:13751b1c
r4837:c06689da
Show More
__init__.py
15 lines | 575 B | text/x-python | PythonLexer
"""GUI support for the IPython ZeroMQ kernel.
This package contains the various toolkit-dependent utilities we use to enable
coordination between the IPython kernel and the event loops of the various GUI
toolkits.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2010 The IPython Development Team.
#
# Distributed under the terms of the BSD License.
#
# The full license is in the file COPYING.txt, distributed as part of this
# software.
#-----------------------------------------------------------------------------