fix to fit PEP8 standards

This commit is contained in:
Cal 2024-06-28 16:22:15 -06:00
parent c41f5d9ebd
commit 3efeda7e6f

View file

@ -442,7 +442,7 @@ def parse_sdescs_and_recogs(
(re.search(rquery, text, _RE_FLAGS), obj, text) for obj, text in candidate_map
)
# filter out any non-matching candidates
bestmatches = [(obj, m.group()) for m, obj, text in matches if m]
bestmatches = [(obj, mtch.group()) for mtch, obj, text in matches if mtch]
else:
# to find the longest match, we start from the marker and lengthen the