X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=parse_html%2Fbkmk_ph_beautifulsoup.py;h=99cff4f68f0ceebbe3ba0a18c3f035eb80f4c15f;hb=c479f67d72a9242909268fb75b77b1c024457c88;hp=f796744a406812e92cbd208b8b132adf88f47643;hpb=b664e25c38cb53bac3f7f33bf333b47e6f1483b5;p=bookmarks_db.git diff --git a/parse_html/bkmk_ph_beautifulsoup.py b/parse_html/bkmk_ph_beautifulsoup.py index f796744..99cff4f 100644 --- a/parse_html/bkmk_ph_beautifulsoup.py +++ b/parse_html/bkmk_ph_beautifulsoup.py @@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__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']*?)>', self.rawdata[i:], re.MULTILINE|re.IGNORECASE) + match = re.search( + r']*?)>', 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: