summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sgmllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py
index 2b65686..b46f829 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'