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

Class NestedFallback

Lib/test/test_gettext.py:817–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815
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.85

Calls

no outgoing calls

Tested by 1

test_nested_fallbacksMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…