speedier format/_map()s
This commit is contained in:
parent
940c9909a2
commit
81b6cdb93b
6 changed files with 23 additions and 19 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue