commit: ee2530ebfe919efebea96356a99d4a9958acdf18 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Mar 28 19:32:37 2017 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Mar 28 19:33:31 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee2530eb
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 .../html5lib/files/html5lib-0.9999999-python3.6-sanitizer-re.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c64cbe1ab3f..2fbef2ad0b9 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", "")
