mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 08:58:27 -07:00
dev-python/html5lib: fix sanitizer patch to match upstream
See: 17499b9763
Package-Manager: Portage-2.3.5, Repoman-2.3.2
This commit is contained in:
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user