
report at bugs
Nov 10, 2009, 4:47 AM
Post #2 of 2
(176 views)
Permalink
|
|
[issue755660] allow HTMLParser to continue after a parse error
[In reply to]
|
|
Francesco Frassinelli <fraph24 [at] gmail> added the comment: Site: http://ftp.vim.org/pub/vim/unstable/patches/ Outuput without error customized function: [...] File "./takeit.py", line 54, in inspect parser.feed(data.read().decode()) File "/home/frafra/Scrivania/takeit/html/parser.py", line 107, in feed self.goahead(0) File "/home/frafra/Scrivania/takeit/html/parser.py", line 163, in goahead k = self.parse_declaration(i) File "/usr/local/lib/python3.1/_markupbase.py", line 97, in parse_declaration decltype, j = self._scan_name(j, i) File "/usr/local/lib/python3.1/_markupbase.py", line 387, in _scan_name % rawdata[declstartpos:declstartpos+20]) File "/home/frafra/Scrivania/takeit/html/parser.py", line 122, in error raise HTMLParseError(message, self.getpos()) html.parser.HTMLParseError: expected name token at '<! gives an error me', at line 153, column 48 Output with error customized function: [...] File "./takeit.py", line 55, in inspect parser.feed(data.read().decode()) File "/home/frafra/Scrivania/takeit/html/parser.py", line 107, in feed self.goahead(0) File "/home/frafra/Scrivania/takeit/html/parser.py", line 163, in goahead k = self.parse_declaration(i) File "/usr/local/lib/python3.1/_markupbase.py", line 97, in parse_declaration decltype, j = self._scan_name(j, i) TypeError: 'NoneType' object is not iterable ---------- _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue755660> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|