summaryrefslogtreecommitdiffstats
path: root/Lib/html/parser.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:38 (GMT)
commit388c0e2325f606d497ec174a4a6b28c4d352db2c (patch)
tree83ab157488dd364de2a26b453c34e6ce7cc29537 /Lib/html/parser.py
parent6d8f744730c0689d822db1a2425170d7d5d44aca (diff)
parent900c292c6b886ad9c693d7e0481dc16398d5071d (diff)
downloadcpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.zip
cpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.tar.gz
cpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.tar.bz2
merge heads
Diffstat (limited to 'Lib/html/parser.py')
-rw-r--r--Lib/html/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py
index 9412280..a6d5be9 100644
--- a/Lib/html/parser.py
+++ b/Lib/html/parser.py
@@ -458,4 +458,4 @@ class HTMLParser(_markupbase.ParserBase):
return '&'+s+';'
return re.sub(r"&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));",
- replaceEntities, s, re.ASCII)
+ replaceEntities, s, flags=re.ASCII)