From 91ef9925aec1c098bb428d8ba778d64ef10c16cf Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 23 May 2021 17:20:21 +0300 Subject: [PATCH] Style: Fix `flake8` E114 --- Robots/bkmk_robot_base.py | 6 ++++-- parse_html/bkmk_ph_htmlparser.py | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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 -- 2.39.5