]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Py3): Remove forgotten `.decode()`/`.encode()`
authorOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 01:02:30 +0000 (04:02 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 20 Nov 2023 01:02:30 +0000 (04:02 +0300)
Writers/bkmk_whtml.py
parse_html/bkmk_ph_beautifulsoup4.py

index 09d99894935d180d78ce2608be8fc611287a56d5..06fb9cf2049fe108cbf125dda42ae2d5b07ed262 100644 (file)
@@ -57,8 +57,8 @@ class writer_html(Writer):
             if b.keyword: self.outfile.write(' SHORTCUTURL="%s"' % b.keyword)
             if b.icon_href:
                 value = b.icon_href
-                if isinstance(value, unicode):
-                    value = value.encode('utf-8')
+                #if isinstance(value, unicode):
+                #    value = value.encode('utf-8')
                 self.outfile.write(' ICON_URI="%s"' % value)
             if b.icon: self.outfile.write(' ICON="%s"' % b.icon)
             if b.charset: self.outfile.write(' LAST_CHARSET="%s"' % b.charset)
index faafca22eb3ee276b70eddf161c4ae8f30a5327f..d76c05acd3da7f1bc6d09168562adfc1c05fa8c0 100644 (file)
@@ -69,8 +69,8 @@ def parse_html(html_text, charset=None, log=None):
         else:
             parts = []
             for part in title:
-                if not isinstance(part, string_type):
-                    part = part.decode()
+                #if not isinstance(part, string_type):
+                #    part = part.decode()
                 parts.append(part.strip())
             title = ''.join(parts)