]> git.phdru.name Git - bookmarks_db.git/blobdiff - parse_html/bkmk_ph_beautifulsoup.py
Fix(Py3): Replace `unicode()` with `.decode()`
[bookmarks_db.git] / parse_html / bkmk_ph_beautifulsoup.py
index f2f042e33b18aae1303f5fdbfa5f365f7aeeca78..e29b4997932d764d29ebc290b9f407ec796a8063 100644 (file)
@@ -96,7 +96,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)