MCPcopy Index your code
hub / github.com/python/cpython / _get_locale_encoding

Method _get_locale_encoding

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

Source from the content-addressed store, hash-verified

2323 return chars
2324
2325 def _get_locale_encoding(self):
2326 try:
2327 import locale
2328 except ImportError:
2329 # Importing locale may fail if Python is being built
2330 return "utf-8"
2331 else:
2332 return locale.getencoding()
2333
2334 def _rewind_decoded_chars(self, n):
2335 """Rewind the _decoded_chars buffer."""

Callers 2

__init__Method · 0.95
reconfigureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected