[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-11 Thread Guido Reina
New submission from Guido Reina: 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(&quo

[issue17183] Small enhancements to Lib/_markupbase.py

2013-02-16 Thread Guido Reina
Guido Reina added the comment: I am attaching a .tgz file with the tests I have performed. The .tgz file contains also a README.txt file with more detailed information. I have done the following test: The script loads the HTML file 'search.html' in 'rawdata' and searches