Message181903
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 |
|
Date |
User |
Action |
Args |
2013-02-11 16:11:08 | guido.reina | set | recipients:
+ guido.reina |
2013-02-11 16:11:08 | guido.reina | set | messageid: <1360599068.18.0.00237006036364.issue17183@psf.upfronthosting.co.za> |
2013-02-11 16:11:08 | guido.reina | link | issue17183 messages |
2013-02-11 16:11:08 | guido.reina | create | |
|