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

Function _get_default_locale

Lib/calendar.py:600–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598
599
600def _get_default_locale():
601 locale = _locale.setlocale(_locale.LC_TIME, None)
602 if locale == "C":
603 with different_locale(""):
604 # The LC_TIME locale does not seem to be configured:
605 # get the user preferred locale.
606 locale = _locale.setlocale(_locale.LC_TIME, None)
607 return locale
608
609
610class LocaleTextCalendar(TextCalendar):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls 1

different_localeClass · 0.85

Tested by

no test coverage detected