]> git.phdru.name Git - bookmarks_db.git/commitdiff
Style: Silent flake8 E227 missing whitespace around bitwise or shift operator
authorOleg Broytman <phd@phdru.name>
Sat, 2 Sep 2023 22:02:46 +0000 (01:02 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 12 Nov 2023 10:16:19 +0000 (13:16 +0300)
parse_html/bkmk_ph_beautifulsoup.py

index f796744a406812e92cbd208b8b132adf88f47643..99cff4f68f0ceebbe3ba0a18c3f035eb80f4c15f 100644 (file)
@@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2007-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2007-2023 PhiloSoft Design"
 __license__ = "GNU GPL"
 
 __all__ = ['parse_html']
@@ -37,7 +37,10 @@ class BadDeclParser(BeautifulSoup):
             except SGMLParseError:
                 # Could not parse the DOCTYPE declaration
                 # Try to just skip the actual declaration
-                match = re.search(r'<!DOCTYPE([^>]*?)>', self.rawdata[i:], re.MULTILINE|re.IGNORECASE)
+                match = re.search(
+                    r'<!DOCTYPE([^>]*?)>', self.rawdata[i:],
+                    re.MULTILINE|re.IGNORECASE)  # noqa: E227
+                #           missing whitespace around bitwise or shift operator
                 if match:
                     toHandle = self.rawdata[i:match.end()]
                 else: