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

Function _get_default_locale

Lib/calendar.py:633–640  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

631
632
633def _get_default_locale():
634 locale = _locale.setlocale(_locale.LC_TIME, None)
635 if locale == "C":
636 with different_locale(""):
637 # The LC_TIME locale does not seem to be configured:
638 # get the user preferred locale.
639 locale = _locale.setlocale(_locale.LC_TIME, None)
640 return locale
641
642
643class LocaleTextCalendar(TextCalendar):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls 1

different_localeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…