From 145b2e0168ddd865e476b498705ea84d8c7b82b1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 4 Aug 1995 04:22:39 +0000 Subject: [PATCH] changed comment parsing --- Lib/sgmllib.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2c92c3180f5..695530a2b00 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -21,7 +21,9 @@ entityref = regex.compile('&[a-zA-Z][a-zA-Z0-9]*[;.]') charref = regex.compile('&#[a-zA-Z0-9]+;') starttagopen = regex.compile('<[a-zA-Z]') endtag = regex.compile('') +special = regex.compile(']*>') commentopen = regex.compile('