From: Guido van Rossum Date: Fri, 6 Oct 1995 15:30:28 +0000 (+0000) Subject: typos in attrfind regex X-Git-Tag: v1.3~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f;p=thirdparty%2FPython%2Fcpython.git typos in attrfind regex --- diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 2b656862aa43..b46f82985a81 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'