From 650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 6 Oct 1995 15:30:28 +0000 Subject: [PATCH] typos in attrfind regex --- Lib/sgmllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2b656862aa4..b46f82985a8 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -178,7 +178,7 @@ class SGMLParser: attrfind = regex.compile( '[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' + '\([ \t\n]*=[ \t\n]*' + - '\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?') + '\(\'[^\']*\'\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]*\)\)?') k = tagfind.match(rawdata, i+1) if k < 0: raise RuntimeError, 'unexpected call to parse_starttag'