summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2017-03-28 12:32:37 -0700
committerZac Medico <zmedico@gentoo.org>2017-03-28 12:33:31 -0700
commitee2530ebfe919efebea96356a99d4a9958acdf18 (patch)
treecd02effaff6bc7dcff1581d5c3ec280c28b916b0 /dev-python/html5lib
parentdev-libs/wlc: remove proxied-maintainer upon request (diff)
downloadgentoo-ee2530ebfe919efebea96356a99d4a9958acdf18.tar.gz
gentoo-ee2530ebfe919efebea96356a99d4a9958acdf18.tar.bz2
gentoo-ee2530ebfe919efebea96356a99d4a9958acdf18.zip
dev-python/html5lib: fix sanitizer patch to match upstream
See: https://github.com/html5lib/html5lib-python/commit/17499b9763a090f7715af49555d21fe4b558958b Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-python/html5lib')
-rw-r--r--dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch b/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch
index c64cbe1ab3f5..2fbef2ad0b9e 100644
--- a/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch
+++ b/dev-python/html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch
@@ -5,7 +5,7 @@
if attr not in attrs:
continue
- val_unescaped = re.sub("[`\000-\040\177-\240\s]+", '',
-+ val_unescaped = re.sub(r"[`\000-\040\177-\240\s]+", '',
++ val_unescaped = re.sub("[`\x00-\x20\x7f-\xa0\\s]+", '',
unescape(attrs[attr])).lower()
# remove replacement characters from unescaped characters
val_unescaped = val_unescaped.replace("\ufffd", "")