From: Oleg Broytman Date: Sun, 23 May 2021 14:20:21 +0000 (+0300) Subject: Style: Fix `flake8` E114 X-Git-Tag: 5.0.0~99 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=91ef9925aec1c098bb428d8ba778d64ef10c16cf Style: Fix `flake8` E114 --- diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index 0600e73..728fe46 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -45,8 +45,10 @@ def get_error(e): return "(%s)" % ' '.join(s) -icons = {} # Icon cache; maps URL to a tuple (content type, data) - # or None if there is no icon. +# Icon cache; maps URL to a tuple (content type, data) +# or None if there is no icon. +icons = {} + class robot_base(Robot): timeout = 60 diff --git a/parse_html/bkmk_ph_htmlparser.py b/parse_html/bkmk_ph_htmlparser.py index 45e89f5..70cba32 100644 --- a/parse_html/bkmk_ph_htmlparser.py +++ b/parse_html/bkmk_ph_htmlparser.py @@ -49,8 +49,9 @@ class HTMLParser(_HTMLParser): try: # extract charset from "text/html; foo; charset=UTF-8, bar; baz;" self.charset = content.lower().split('charset=')[1].split(';')[0].split(',')[0] - self.meta_charset = 1 # Remember that the charset was retrieved from - # META tag, not from the Content-Type header + # Remember that the charset was retrieved from + # META tag, not from the Content-Type header + self.meta_charset = 1 except IndexError: pass