From: Oleg Broytman Date: Tue, 4 Mar 2008 11:45:39 +0000 (+0000) Subject: Full name for "IGNORECASE". X-Git-Tag: v4.5.3~174 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=dcad728f7b334f67f4f883add324de805b0b1e40;p=bookmarks_db.git Full name for "IGNORECASE". git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@202 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- 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: