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

Method install

Lib/gettext.py:325–331  ·  view source on GitHub ↗
(self, names=None)

Source from the content-addressed store, hash-verified

323 return self._charset
324
325 def install(self, names=None):
326 import builtins
327 builtins.__dict__['_'] = self.gettext
328 if names is not None:
329 allowed = {'gettext', 'ngettext', 'npgettext', 'pgettext'}
330 for name in allowed & set(names):
331 builtins.__dict__[name] = getattr(self, name)
332
333
334class GNUTranslations(NullTranslations):

Callers 1

installFunction · 0.45

Calls 1

setFunction · 0.85

Tested by

no test coverage detected