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

Function _append_modifier

Lib/locale.py:375–384  ·  view source on GitHub ↗
(code, modifier)

Source from the content-addressed store, hash-verified

373 return langname + '.' + encoding
374
375def _append_modifier(code, modifier):
376 if modifier == 'euro':
377 if '.' not in code:
378 return code + '.ISO8859-15'
379 _, _, encoding = code.partition('.')
380 if encoding in ('ISO8859-15', 'UTF-8'):
381 return code
382 if encoding == 'ISO8859-1':
383 return _replace_encoding(code, 'ISO8859-15')
384 return code + '@' + modifier
385
386def normalize(localename):
387

Callers 1

normalizeFunction · 0.85

Calls 2

_replace_encodingFunction · 0.85
partitionMethod · 0.45

Tested by

no test coverage detected