"""
__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']
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: