MCPcopy Create free account
hub / github.com/ipython/ipython / init_encoding

Method init_encoding

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

Source from the content-addressed store, hash-verified

775 pass
776
777 def init_encoding(self):
778 # Get system encoding at startup time. Certain terminals (like Emacs
779 # under Win32 have it set to None, and we need to have a known valid
780 # encoding to use in the raw_input() method
781 try:
782 self.stdin_encoding = sys.stdin.encoding or 'ascii'
783 except AttributeError:
784 self.stdin_encoding = 'ascii'
785
786
787 @observe('colors')

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected