]> git.phdru.name Git - bookmarks_db.git/blobdiff - parse_html/bkmk_ph_beautifulsoup4.py
Fix(Py3): Replace `unicode()` with `.decode()`
[bookmarks_db.git] / parse_html / bkmk_ph_beautifulsoup4.py
index e1662ed9e84b9866fceef5f72c0744b35b870111..1f77eb794be2c849f4eee824bb4ddbd62eb44488 100644 (file)
@@ -55,7 +55,7 @@ def parse_html(html_text, charset=None, log=None):
             parts = []
             for part in title:
                 if not isinstance(part, basestring):
-                    part = unicode(part)
+                    part = part.decode()
                 parts.append(part.strip())
             title = ''.join(parts)