X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fparse_html_beautifulsoup.py;h=dc61a3305a3c0509562cfa9df56ccb88d550dc60;hb=dcad728f7b334f67f4f883add324de805b0b1e40;hp=ca8ee2e1a0ecc2bdd4f78524e04638a664ec508c;hpb=05955edd8eb929042d179dcbbd81333af2714128;p=bookmarks_db.git diff --git a/Robots/parse_html_beautifulsoup.py b/Robots/parse_html_beautifulsoup.py index ca8ee2e..dc61a33 100644 --- a/Robots/parse_html_beautifulsoup.py +++ b/Robots/parse_html_beautifulsoup.py @@ -39,7 +39,7 @@ 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.I) + match = re.search(r']*?)>', self.rawdata[i:], re.MULTILINE|re.IGNORECASE) if match: toHandle = self.rawdata[i:match.end()] else: