def _guess_media_encoding(self, source):
        info = source.byteStream.info()
        if info in "Content-Type":
            for param in info.getplist():
                if param.startswith("charset="):
                    return param.split("=", 1)[1].lower()
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/xml/dom/xmlbuilder.py/DOMEntityResolver._guess_media_encoding/swapped operands of `in`