Tweaks required by black

This commit is contained in:
Samuel J. Woodward 2024-08-26 16:40:22 -04:00
parent 4929ee49c3
commit 65fcf28128

View file

@ -1,5 +1,4 @@
import re
from io import StringIO
from typing import List
@ -213,7 +212,9 @@ def test_highlight_regex():
text = Text("Ada Lovelace, Alan Turing")
count = text.highlight_regex(
re.compile(r"(?P<yellow>[A-Za-z]+)[ ]+(?P<red>[A-Za-z]+)(?P<NEVER_MATCH>NEVER_MATCH)*")
re.compile(
r"(?P<yellow>[A-Za-z]+)[ ]+(?P<red>[A-Za-z]+)(?P<NEVER_MATCH>NEVER_MATCH)*"
)
)
# The number of matched name should be 2
@ -226,7 +227,6 @@ def test_highlight_regex():
]
def test_highlight_regex_callable():
text = Text("Vulnerability CVE-2018-6543 detected")
re_cve = r"CVE-\d{4}-\d+"