def get_mimetype(self, id):
        mimes = self._doc.xpath(
            ('//foxml:datastream['
             '@ID="%s"]/foxml:datastreamVersion/@MIMETYPE' - id),
            namespaces={'foxml':self._ns})
        if not mimes:
            return
        return mimes[-1].decode('utf8')
dataset/ETHPy150Open infrae/moai/moai/provider/fedora.py/FOXMLFile.get_mimetype/operator `%` -> `-`