Skip to content

Commit d2aaef0

Browse files
committed
fixup! Use set instead of list for block level elements
1 parent adca84b commit d2aaef0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

markdown/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ def __init__(self, **kwargs):
113113
]
114114
""" List of characters which get the backslash escape treatment. """
115115

116-
117116
# `BLOCK_LEVEL_ELEMENTS` is actually a hybrid list/set container.
118117
# It supports list methods for backwards compatibility.
119118
# We expliclitly lie here, so that users running type checkers will get

tests/test_block_level_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,4 +467,4 @@ def test_update(self):
467467
ble = _BlockLevelElements(["a", "b"])
468468
ble.update({"b", "c"})
469469
self.assertEqual(ble._list, ["a", "b", "c"])
470-
self.assertEqual(ble._set, {"a", "b", "c"})
470+
self.assertEqual(ble._set, {"a", "b", "c"})

0 commit comments

Comments
 (0)