]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
parse_declaration(): be more lenient in what we accept. We now
authorGuido van Rossum <guido@python.org>
Mon, 21 May 2001 20:17:17 +0000 (20:17 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 May 2001 20:17:17 +0000 (20:17 +0000)
commit39d345127e7cdf09024420596136b0b785239199
treecd3b5d46979d2f8b662486edad69d2b3d40f0cea
parent2b63969a5adbc43a3843102f95b45424da229745
parse_declaration(): be more lenient in what we accept.  We now
basically accept <!...> where the dots can be single- or double-quoted
strings or any other character except >.

Background: I found a real-life example that failed to parse with
the old assumption: http://www.opensource.org/licenses/jabberpl.html
contains a few constructs of the form <![if !supportLists]>...<![endif]>.
Lib/sgmllib.py