MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _parse_localename

Function _parse_localename

Lib/locale.py:415–443  ·  view source on GitHub ↗

Parses the locale code for localename and returns the result as tuple (language code, encoding). The localename is normalized and passed through the locale alias engine. A ValueError is raised in case the locale name cannot be parsed. The language code corr

(localename)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

getdefaultlocaleFunction · 0.85
getlocaleFunction · 0.85

Calls 2

splitMethod · 0.80
normalizeFunction · 0.70

Tested by

no test coverage detected