MCPcopy
hub / github.com/django/django / update

Method update

django/utils/translation/trans_real.py:105–112  ·  view source on GitHub ↗
(self, trans)

Source from the content-addressed store, hash-verified

103 yield from cat.keys()
104
105 def update(self, trans):
106 # Merge if plural function is the same as the top catalog, else
107 # prepend.
108 if trans.plural.__code__ == self._plurals[0]:
109 self._catalogs[0].update(trans._catalog)
110 else:
111 self._catalogs.insert(0, trans._catalog.copy())
112 self._plurals.insert(0, trans.plural)
113
114 def get(self, key, default=None):
115 missing = object()

Callers 1

mergeMethod · 0.45

Calls 2

insertMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected