(self, trans)
| 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() |