again, r"\" isn't valid.

This commit is contained in:
jesopo 2019-02-20 16:53:40 +00:00
parent e343bf3e6a
commit ddb69685d3

View file

@ -107,7 +107,7 @@ def message_tag_escape(s):
return _multi_replace(s, MESSAGE_TAG_UNESCAPED, MESSAGE_TAG_ESCAPED) return _multi_replace(s, MESSAGE_TAG_UNESCAPED, MESSAGE_TAG_ESCAPED)
def message_tag_unescape(s): def message_tag_unescape(s):
unescaped = _multi_replace(s, MESSAGE_TAG_ESCAPED, MESSAGE_TAG_UNESCAPED) unescaped = _multi_replace(s, MESSAGE_TAG_ESCAPED, MESSAGE_TAG_UNESCAPED)
return unescaped.replace(r"\", "") return unescaped.replace("\\", "")
def parse_line(line: str) -> IRCParsedLine: def parse_line(line: str) -> IRCParsedLine:
tags = {} # type: typing.Dict[str, typing.Any] tags = {} # type: typing.Dict[str, typing.Any]