• Guido van Rossum's avatar
    Change several "raise HTMLParseError" statements into assertions, as · fb73bb90
    Guido van Rossum authored
    these are really complaints about the intgrity of our own code.
    HTMLParseError should be raised only for invalid input.  (Should we
    turn more unrecognized constructs into exceptions, e.g. '&' not
    followed by an entity or character reference?)
    
    Also added an 'r' prefix to a regex string containing a backslash.
    fb73bb90
HTMLParser.py 18.6 KB