Skip to content

Commit 1337d08

Browse files
vedranmileticwaylan
authored andcommitted
Fixed Python 3.12 DeprecationWarning
Testing an element's truth value will raise an exception in future versions.
1 parent dba8025 commit 1337d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markdown/extensions/admonition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_content(self, parent, block):
7676
# to be under it, then the content's sibling is in the list.
7777
last_child = self.lastChild(sibling)
7878
indent = 0
79-
while last_child:
79+
while last_child is not None:
8080
if (
8181
sibling and block.startswith(' ' * self.tab_length * 2) and
8282
last_child and last_child.tag in ('ul', 'ol', 'dl')

0 commit comments

Comments
 (0)