From: Oleg Broytman Date: Mon, 4 Sep 2023 16:55:14 +0000 (+0300) Subject: Style: Fix flake8 E265 block comment should start with '# ' X-Git-Tag: 5.0.0~86 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=4255ead7de9ed5069f94b90cb134a077387d43c1;p=bookmarks_db.git Style: Fix flake8 E265 block comment should start with '# ' --- diff --git a/bkmk2db.py b/bkmk2db.py index 0beea07..58031c0 100755 --- a/bkmk2db.py +++ b/bkmk2db.py @@ -88,7 +88,7 @@ def run(): lng = lng + len(line) + dos_add pbar.display(lng) - #line = line.strip() + # line = line.strip() line_no = line_no + 1 try: diff --git a/parse_html/bkmk_parse_html.py b/parse_html/bkmk_parse_html.py index 5da37a9..7bdc566 100644 --- a/parse_html/bkmk_parse_html.py +++ b/parse_html/bkmk_parse_html.py @@ -56,12 +56,12 @@ else: parsers.append(bkmk_ph_htmlparser.parse_html) # ElementTidy often segfaults -#try: -# from . import bkmk_ph_etreetidy -#except ImportError: -# pass -#else: -# parsers.append(bkmk_ph_etreetidy.parse_html) +# try: +# from . import bkmk_ph_etreetidy +# except ImportError: +# pass +# else: +# parsers.append(bkmk_ph_etreetidy.parse_html) import re from htmlentitydefs import name2codepoint @@ -180,7 +180,7 @@ def parse_html(html_text, charset=None, log=None): if log: log(" META charset : %s" % parser.charset) elif (not charset) or (charset != parser.charset): if log: log(" guessed charset: %s" % parser.charset) - #if log: log(" current charset: %s" % universal_charset) + # if log: log(" current charset: %s" % universal_charset) if log: log(" title : %s" % title) if parser.charset != universal_charset: try: