New submission from Mark Nottingham :
In markupbase.py's ParserBase.parse_declaration, an unexpected character is
caught like this:
else:
self.error(
"unexpected %r char in declaration" % rawdata[j])
However, the position (j
Mark Nottingham added the comment:
Just to be clear -- if error() returns, it will cause an infinite loop.
--
___
Python tracker
<http://bugs.python.org/issue8
Mark Nottingham added the comment:
http://svn.python.org/view/python/trunk/Lib/markupbase.py?view=log
--
status: pending -> open
___
Python tracker
<http://bugs.python.org/iss
Mark Nottingham added the comment:
I'm using it from HTMLParser; try to parse a document with the DTD given when
error is something like:
def error(self, msg):
self.errors += 1
and it will loop.
--
___
Python tracker
Mark Nottingham added the comment:
Attaching test case.
--
Added file: http://bugs.python.org/file17623/testcase_8885.py
___
Python tracker
<http://bugs.python.org/issue8
Changes by Mark Nottingham :
--
nosy: +mnot
___
Python tracker
<http://bugs.python.org/issue7827>
___
___
Python-bugs-list mailing list
Unsubscribe:
Mark Nottingham added the comment:
http: and http:// are both valid base URIs; see RFC3986.
More to the point, it's a useful thing to use a scheme as a base URI; many
users omit the HTTP:// from their URIs.
--
nosy: +mnot
___
Python tr
Mark Nottingham added the comment:
Seems to be fixed in 2.7, although I'm not sure when exactly :
Python 2.7.2 (default, Oct 21 2011, 22:13:39)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits"
Mark Nottingham added the comment:
>From the release notes, perhaps it was #8104.
--
___
Python tracker
<http://bugs.python.org/issue7827>
___
___
Python-
Mark Nottingham added the comment:
Why remove 2.7? It'd be an easy bug fix if j is incremented.
--
___
Python tracker
<http://bugs.python.org/issue8885>
___
___
10 matches
Mail list logo