MCPcopy Create free account
hub / github.com/ActiveState/code / FakeLocale

Class FakeLocale

recipes/Python/56036_Pure_Python_strptime/recipe-56036.py:25–32  ·  view source on GitHub ↗

Faked locale module (for Jython compatibility).

Source from the content-addressed store, hash-verified

23 import locale
24except ImportError:
25 class FakeLocale:
26
27 """Faked locale module (for Jython compatibility)."""
28
29 LC_TIME = None
30
31 def getlocale(self, whatever):
32 return (whatever, whatever)
33
34 locale = FakeLocale()
35

Callers 1

recipe-56036.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected