|
1 | 1 | """Deprecated from html5lib 1.1.
|
2 | 2 |
|
3 |
| -See `here <https://github.com/html5lib/html5lib-python/issues/443>`_ for information about its |
4 |
| -deprecation; `Bleach <https://github.com/mozilla/bleach>`_ is recommended as a replacement. Please |
5 |
| -let us know in the aforementioned issue if Bleach is unsuitable for your needs. |
| 3 | +See `here <https://github.com/html5lib/html5lib-python/issues/443>`_ for |
| 4 | +information about its deprecation; `Bleach <https://github.com/mozilla/bleach>`_ |
| 5 | +is recommended as a replacement. Please let us know in the aforementioned issue |
| 6 | +if Bleach is unsuitable for your needs. |
6 | 7 |
|
7 | 8 | """
|
8 | 9 | from __future__ import absolute_import, division, unicode_literals
|
|
19 | 20 | __all__ = ["Filter"]
|
20 | 21 |
|
21 | 22 |
|
22 |
| -__deprecation_msg = ( |
| 23 | +_deprecation_msg = ( |
23 | 24 | "html5lib's sanitizer is deprecated; see " +
|
24 | 25 | "https://github.com/html5lib/html5lib-python/issues/443 and please let " +
|
25 | 26 | "us know if Bleach is unsuitable for your needs"
|
26 | 27 | )
|
27 | 28 |
|
28 |
| -warnings.warn(__deprecation_msg, DeprecationWarning) |
| 29 | +warnings.warn(_deprecation_msg, DeprecationWarning) |
29 | 30 |
|
30 | 31 | allowed_elements = frozenset((
|
31 | 32 | (namespaces['html'], 'a'),
|
@@ -767,7 +768,7 @@ def __init__(self,
|
767 | 768 | """
|
768 | 769 | super(Filter, self).__init__(source)
|
769 | 770 |
|
770 |
| - warnings.warn(__deprecation_msg, DeprecationWarning) |
| 771 | + warnings.warn(_deprecation_msg, DeprecationWarning) |
771 | 772 |
|
772 | 773 | self.allowed_elements = allowed_elements
|
773 | 774 | self.allowed_attributes = allowed_attributes
|
|
0 commit comments