more .format.
This commit is contained in:
parent
7ab4f756fe
commit
0aa2185ede
15 changed files with 41 additions and 49 deletions
|
@ -24,6 +24,6 @@ def mcwiki(inp):
|
|||
summary = " ".join(p.text_content().splitlines())
|
||||
summary = re.sub("\[\d+\]", "", summary)
|
||||
summary = text.truncate_str(summary, 200)
|
||||
return "%s :: %s" % (summary, url)
|
||||
return "{} :: {}".format(summary, url)
|
||||
|
||||
return "Unknown Error."
|
||||
|
|
Reference in a new issue