MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_locale_encoding

Method _get_locale_encoding

Lib/_pyio.py:2301–2308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2299 return chars
2300
2301 def _get_locale_encoding(self):
2302 try:
2303 import locale
2304 except ImportError:
2305 # Importing locale may fail if Python is being built
2306 return "utf-8"
2307 else:
2308 return locale.getencoding()
2309
2310 def _rewind_decoded_chars(self, n):
2311 """Rewind the _decoded_chars buffer."""

Callers 2

__init__Method · 0.95
reconfigureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected