rebuild for 10.11+

This commit is contained in:
j 2019-01-10 14:33:55 +05:30
commit 901b731582
234 changed files with 1522 additions and 927 deletions

View file

@ -1,9 +1,13 @@
# cython: language_level=2
"""A cleanup tool for HTML.
Removes unwanted tags and content. See the `Cleaner` class for
details.
"""
from __future__ import absolute_import
import re
import copy
try:
@ -27,11 +31,6 @@ try:
except NameError:
# Python 3
unicode = str
try:
bytes
except NameError:
# Python < 2.6
bytes = str
try:
basestring
except NameError:
@ -213,7 +212,7 @@ class Cleaner(object):
safe_attrs = defs.safe_attrs
add_nofollow = False
host_whitelist = ()
whitelist_tags = set(['iframe', 'embed'])
whitelist_tags = {'iframe', 'embed'}
def __init__(self, **kw):
for name, value in kw.items():