Skip to content

Commit

Permalink
Remove markdown.util.etree
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth committed Nov 21, 2023
1 parent afe4038 commit 5dec7e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion myhpi/core/markdown/extensions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
import xml.etree.ElementTree

from django.core.exceptions import ObjectDoesNotExist
from django.utils.translation import gettext_lazy as _
Expand Down Expand Up @@ -145,7 +146,7 @@ def decrease(self, match):

class InternalLinkPattern(LinkInlineProcessor):
def handleMatch(self, m, data=None):
el = util.etree.Element("a")
el = xml.etree.ElementTree.Element("a")
try:
el.set("href", self.url(m.group("id")))
el.text = util.AtomicString(m.group("title"))
Expand Down

0 comments on commit 5dec7e2

Please sign in to comment.