summaryrefslogtreecommitdiffstats
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-03-14 16:21:57 (GMT)
committerFred Drake <fdrake@acm.org>2003-03-14 16:21:57 (GMT)
commit0834d77bc4f07e5632588ed636b6db21e87694cc (patch)
tree850724fd3c7dd6eeccc9dd060784f4787ea7a39c /Lib/sgmllib.py
parent080cb3268f770d2589ee350ace7f589927e8db98 (diff)
downloadcpython-0834d77bc4f07e5632588ed636b6db21e87694cc.zip
cpython-0834d77bc4f07e5632588ed636b6db21e87694cc.tar.gz
cpython-0834d77bc4f07e5632588ed636b6db21e87694cc.tar.bz2
Accept commas in unquoted attribute values.
This closes SF patch #669683.
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 021c8b5..a4f0a8b 100644
--- a/Lib/sgmllib.py
+++ b/Lib/sgmllib.py
@@ -34,7 +34,7 @@ commentclose = re.compile(r'--\s*>')
tagfind = re.compile('[a-zA-Z][-_.a-zA-Z0-9]*')
attrfind = re.compile(
r'\s*([a-zA-Z_][-:.a-zA-Z_0-9]*)(\s*=\s*'
- r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:;+*%?!&$\(\)_#=~\'"]*))?')
+ r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~\'"]*))?')
class SGMLParseError(RuntimeError):