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

Method install

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

Source from the content-addressed store, hash-verified

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

Callers 1

installFunction · 0.45

Calls 2

setFunction · 0.85
getattrFunction · 0.85

Tested by

no test coverage detected