Skip to content

Commit 265f456

Browse files
committed
Fix urlparse import.
1 parent 01b1ebb commit 265f456

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

html5lib/sanitizer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import re
44
from xml.sax.saxutils import escape, unescape
5-
from six.moves import urllib_parse as urlparse
5+
try:
6+
from six.moves import urllib_parse as urlparse
7+
except ImportError:
8+
from six.moves.urllib import parse as urlparse
69

710
from .tokenizer import HTMLTokenizer
811
from .constants import tokenTypes

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy