From 4255ead7de9ed5069f94b90cb134a077387d43c1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 4 Sep 2023 19:55:14 +0300 Subject: [PATCH] Style: Fix flake8 E265 block comment should start with '# ' --- bkmk2db.py | 2 +- parse_html/bkmk_parse_html.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) 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: -- 2.39.5