Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setInfo(self, key: str, value: str) -> None:
# FIXME
origKey = key
key = fixUtf8(key)
value = fixUtf8(value)
try:
key = self.infoKeysAliasDict[key.lower()]
except KeyError:
pass
if origKey != key:
log.debug("setInfo: %s -> %s", origKey, key)
self._info[key] = value
def setInfo(self, key: str, value: str) -> None:
# FIXME
origKey = key
key = fixUtf8(key)
value = fixUtf8(value)
try:
key = self.infoKeysAliasDict[key.lower()]
except KeyError:
pass
if origKey != key:
log.debug("setInfo: %s -> %s", origKey, key)
self._info[key] = value
def run(self, entry: BaseEntry) -> Optional[BaseEntry]:
entry.editFuncWord(fixUtf8)
entry.editFuncDefi(fixUtf8)
return entry
def run(self, entry: BaseEntry) -> Optional[BaseEntry]:
entry.editFuncWord(fixUtf8)
entry.editFuncDefi(fixUtf8)
return entry