summaryrefslogtreecommitdiffstats
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-06 15:30:28 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-06 15:30:28 (GMT)
commit650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f (patch)
treefd8fe2cf4999c814ed3278bb75e8f59de64fe032 /Lib/sgmllib.py
parentd58364e709c9968b6084e8d4a6177c30c6739418 (diff)
downloadcpython-650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f.zip
cpython-650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f.tar.gz
cpython-650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f.tar.bz2
typos in attrfind regex
Diffstat (limited to 'Lib/sgmllib.py')
-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'