Simplify literals in _wrapped

This commit is contained in:
Adeodato Simó 2023-10-09 21:01:34 -03:00
parent c3c22022f6
commit 0043329cc1
No known key found for this signature in database
GPG key ID: CDF447845F1A986F

View file

@ -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