Skip to content

Commit a04c03b

Browse files
committed
Sitelib: Python 3 compatibility: use get_charset() instead of getparam()
1 parent 305449f commit a04c03b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/HTMLTreeParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def start(self, tag, attrs, loc_start, loc_end):
182182
header = email.message.Message(
183183
io.StringIO("%s: %s\n\n" % (http_equiv, content))
184184
)
185-
encoding = header.getparam("charset")
185+
encoding = header.get_charset()
186186
if encoding:
187187
self.encoding = encoding
188188
l_tag = tag.lower()

0 commit comments

Comments
 (0)