Author guido.reina
Recipients guido.reina
Date 2013-02-11.16:11:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360599068.18.0.00237006036364.issue17183@psf.upfronthosting.co.za>
In-reply-to
Content
In the file: Lib/_markupbase.py, function: "_parse_doctype_element" there is:

if '>' in rawdata[j:]:
    return rawdata.find(">", j) + 1

rawdata[j:] is being scanned twice.

It would be better to do:
pos = rawdata.find(">", j)
if pos != -1:
    return pos + 1


Same thing in the function: "_parse_doctype_attlist":

if ")" in rawdata[j:]:
    j = rawdata.find(")", j) + 1
else:
    return -1

It would be better to do:
pos = rawdata.find(")", j)
if pos != -1:
    j = pos + 1
else:
    return -1
History
Date User Action Args
2013-02-11 16:11:08guido.reinasetrecipients: + guido.reina
2013-02-11 16:11:08guido.reinasetmessageid: <1360599068.18.0.00237006036364.issue17183@psf.upfronthosting.co.za>
2013-02-11 16:11:08guido.reinalinkissue17183 messages
2013-02-11 16:11:08guido.reinacreate