commit | 650ba37e1d7f1f3cf3f25d12965b2d1d68eacf4f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Oct 06 15:30:28 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Oct 06 15:30:28 1995 +0000 |
tree | fd8fe2cf4999c814ed3278bb75e8f59de64fe032 | |
parent | d58364e709c9968b6084e8d4a6177c30c6739418 [diff] [blame] |
typos in attrfind regex
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 @@ 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'