You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In markupbase class parser method parse_declaration
It verfies that the first two characters are "<!"
Then it returns -1 if the next character is "-".
After that, it checks to see if the next two characters
are "--", but if they were, it would already have returned.
Solution: Check for comments before checking for a
short buffer.
ifrawdata[j:j+1] =='--': #comment# Locate --.*-- as the body of the commentreturnself.parse_comment(i)
ifrawdata[j:j+1] in ("-", ""):
# Start of comment followed by buffer # boundary, or just a buffer boundary.return-1
As noted in the related patch (bpo-901369), this probably
shouldn't be considered a bug. Keeping this open pending
outcome of email discussion with OP.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: