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

Class different_locale

Lib/calendar.py:587–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586
587class different_locale:
588 def __init__(self, locale):
589 self.locale = locale
590 self.oldlocale = None
591
592 def __enter__(self):
593 self.oldlocale = _locale.setlocale(_locale.LC_TIME, None)
594 _locale.setlocale(_locale.LC_TIME, self.locale)
595
596 def __exit__(self, *args):
597 _locale.setlocale(_locale.LC_TIME, self.oldlocale)
598
599
600def _get_default_locale():

Callers 5

_get_default_localeFunction · 0.85
formatweekdayMethod · 0.85
formatmonthnameMethod · 0.85
formatweekdayMethod · 0.85
formatmonthnameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected