mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
ruff: Appease SIM118 "class" not in uncle.keys()
.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 36dde99308
)
This commit is contained in:
committed by
Alex Vandiver
parent
43b09fd89d
commit
4ac849d006
@@ -1136,7 +1136,7 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
|
||||
}
|
||||
if (
|
||||
uncle.tag != "div"
|
||||
or "class" not in uncle.keys()
|
||||
or "class" not in uncle.attrib
|
||||
or not (set(uncle.attrib["class"].split()) & inline_image_classes)
|
||||
):
|
||||
return insertion_index
|
||||
|
Reference in New Issue
Block a user