speedier format/_map()s

This commit is contained in:
Alessandro Ogier 2022-08-03 23:21:07 +02:00
parent 940c9909a2
commit 81b6cdb93b
6 changed files with 23 additions and 19 deletions

View file

@ -1552,7 +1552,7 @@ def parse_nick_template(string, template_regex, outtemplate):
matchdict = {
key: value if value is not None else "" for key, value in match.groupdict().items()
}
return True, outtemplate.format(**matchdict)
return True, outtemplate.format_map(matchdict)
return False, string