def from_map(self, inexts, langtempls, newdb):
        """Initalize the dictionary of extensions by converting the input map

        :param inexts: YAML map defining the extensions
        :param langtempls: list of language templates
        :param newdb: dictionary of input database
        """
        for key in inexts:
            if not key.startswith('extension '):
                raise KeyError(key % "Unrecognized object type: %s")
            ext = key[10:]
            inexten = inexts[key]
            self[ext] = Extension(name=ext,
                                  description=inexten.get('description'),
                                  owner=inexten.get('owner'),
                                  schema=inexten['schema'],
                                  version=inexten.get('version'))
            if self[ext].name in langtempls:
                lang = {'language %s' % self[ext].name: {'_ext': 'e'}}
                newdb.languages.from_map(lang)
dataset/ETHPy150Open perseas/Pyrseas/pyrseas/dbobject/extension.py/ExtensionDict.from_map/swapped operands of `%`