]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_parser.py
Style: Fix flake8 E501 line too long
[bookmarks_db.git] / bkmk_parser.py
index 00cfcd4c4ce298efc4d4da643b188b391230f325..b929721cedca3d68b84734bce4aa0bc4be1be09f 100644 (file)
@@ -48,7 +48,8 @@ class BkmkParser(HTMLParser):
     def handle_data(self, data):
         if data:
             if self.charset and default_encoding:
-                data = unicode(data, self.charset, "replace").encode(default_encoding, "xmlcharrefreplace")
+                data = unicode(data, self.charset, "replace").\
+                    encode(default_encoding, "xmlcharrefreplace")
             self.accumulator += data
 
     # Mozilla - get charset
@@ -72,7 +73,8 @@ class BkmkParser(HTMLParser):
 
     def start_title(self, attrs):
         if default_encoding:
-            self.accumulator += '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=%s">\n' % default_encoding
+            self.accumulator += '<META HTTP-EQUIV="Content-Type" '
+            'CONTENT="text/html; charset=%s">\n' % default_encoding
         self.accumulator += "<TITLE>"
 
     def end_title(self):