

def codec(self, mime):
    mime = mime.split(';', 1)[0]
    mime = mime.strip().lower()
    return self._codecs.get(mime, None)

dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/primitives/codec.py MimeCodec.codec/original