This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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