]> git.phdru.name Git - bookmarks_db.git/commitdiff
Full name for "IGNORECASE".
authorOleg Broytman <phd@phdru.name>
Tue, 4 Mar 2008 11:45:39 +0000 (11:45 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 4 Mar 2008 11:45:39 +0000 (11:45 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@202 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/parse_html_beautifulsoup.py

index ca8ee2e1a0ecc2bdd4f78524e04638a664ec508c..dc61a3305a3c0509562cfa9df56ccb88d550dc60 100644 (file)
@@ -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'<!DOCTYPE([^>]*?)>', self.rawdata[i:], re.MULTILINE|re.I)
+                 match = re.search(r'<!DOCTYPE([^>]*?)>', self.rawdata[i:], re.MULTILINE|re.IGNORECASE)
                  if match:
                      toHandle = self.rawdata[i:match.end()]
                  else: