mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
Simplify literals in _wrapped
This commit is contained in:
parent
c3c22022f6
commit
0043329cc1
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ def format_links(content):
|
|||
|
||||
def _wrapped(text):
|
||||
"""check if a line of text is wrapped"""
|
||||
wrappers = [("(", ")"), ("[", "]"), ("{", "}")]
|
||||
wrappers = ["()", "[]", "{}"]
|
||||
for wrapper in wrappers:
|
||||
if text[0] == wrapper[0] and text[-1] == wrapper[-1]:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue