summaryrefslogtreecommitdiff
path: root/poezio/xhtml.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/xhtml.py')
-rw-r--r--poezio/xhtml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py
index d8ea49a6..e886bb3d 100644
--- a/poezio/xhtml.py
+++ b/poezio/xhtml.py
@@ -20,7 +20,7 @@ from pathlib import Path
from io import BytesIO
from xml import sax
-from xml.sax import saxutils
+from xml.sax import saxutils, ContentHandler
from typing import List, Dict, Optional, Union, Tuple
from slixmpp.xmlstream import ET
@@ -299,7 +299,7 @@ def get_hash(data: bytes) -> str:
b'/', b'-').decode()
-class XHTMLHandler(sax.ContentHandler):
+class XHTMLHandler(ContentHandler):
def __init__(self, force_ns=False,
tmp_image_dir: Optional[Path] = None) -> None:
self.builder: List[str] = []