MCPcopy Index your code
hub / github.com/ipython/ipython / init_encoding

Method init_encoding

IPython/core/interactiveshell.py:780–787  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

778 pass
779
780 def init_encoding(self):
781 # Get system encoding at startup time. Certain terminals (like Emacs
782 # under Win32 have it set to None, and we need to have a known valid
783 # encoding to use in the raw_input() method
784 try:
785 self.stdin_encoding = sys.stdin.encoding or 'ascii'
786 except AttributeError:
787 self.stdin_encoding = 'ascii'
788
789 colors = Unicode(
790 "neutral", help="Set the color scheme (nocolor, neutral, linux, lightbg)."

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected