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

Method gettext

Lib/test/test_gettext.py:818–821  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

816 def test_nested_fallbacks(self):
817 class NestedFallback(gettext.NullTranslations):
818 def gettext(self, message):
819 if message == 'foo':
820 return 'fallback'
821 return super().gettext(message)
822
823 fallback1 = NestedFallback()
824 fallback2 = FallbackTranslations()

Callers 1

test_nested_fallbacksMethod · 0.95

Calls 2

superClass · 0.85
gettextMethod · 0.45

Tested by

no test coverage detected