|
| 1 | +diff --git bleach/_vendor/html5lib/_inputstream.py bleach/_vendor/html5lib/_inputstream.py |
| 2 | +index 0207dd2..0976251 100644 |
| 3 | +--- bleach/_vendor/html5lib/_inputstream.py |
| 4 | ++++ bleach/_vendor/html5lib/_inputstream.py |
| 5 | +@@ -1,7 +1,7 @@ |
| 6 | + from __future__ import absolute_import, division, unicode_literals |
| 7 | + |
| 8 | +-from six import text_type |
| 9 | +-from six.moves import http_client, urllib |
| 10 | ++from bleach.six_shim import text_type |
| 11 | ++from bleach.six_shim import http_client, urllib |
| 12 | + |
| 13 | + import codecs |
| 14 | + import re |
| 15 | +diff --git bleach/_vendor/html5lib/_tokenizer.py bleach/_vendor/html5lib/_tokenizer.py |
| 16 | +index 4748a19..d884801 100644 |
| 17 | +--- bleach/_vendor/html5lib/_tokenizer.py |
| 18 | ++++ bleach/_vendor/html5lib/_tokenizer.py |
| 19 | +@@ -1,6 +1,6 @@ |
| 20 | + from __future__ import absolute_import, division, unicode_literals |
| 21 | + |
| 22 | +-from six import unichr as chr |
| 23 | ++from bleach.six_shim import unichr as chr |
| 24 | + |
| 25 | + from collections import deque, OrderedDict |
| 26 | + from sys import version_info |
| 27 | +diff --git bleach/_vendor/html5lib/_trie/py.py bleach/_vendor/html5lib/_trie/py.py |
| 28 | +index c2ba3da..56f66bd 100644 |
| 29 | +--- bleach/_vendor/html5lib/_trie/py.py |
| 30 | ++++ bleach/_vendor/html5lib/_trie/py.py |
| 31 | +@@ -1,5 +1,5 @@ |
| 32 | + from __future__ import absolute_import, division, unicode_literals |
| 33 | +-from six import text_type |
| 34 | ++from bleach.six_shim import text_type |
| 35 | + |
| 36 | + from bisect import bisect_left |
| 37 | + |
| 38 | +diff --git bleach/_vendor/html5lib/_utils.py bleach/_vendor/html5lib/_utils.py |
| 39 | +index 9ea5794..635bb02 100644 |
| 40 | +--- bleach/_vendor/html5lib/_utils.py |
| 41 | ++++ bleach/_vendor/html5lib/_utils.py |
| 42 | +@@ -7,7 +7,7 @@ try: |
| 43 | + except ImportError: |
| 44 | + from collections import Mapping |
| 45 | + |
| 46 | +-from six import text_type, PY3 |
| 47 | ++from bleach.six_shim import text_type, PY3 |
| 48 | + |
| 49 | + if PY3: |
| 50 | + import xml.etree.ElementTree as default_etree |
| 51 | +diff --git bleach/_vendor/html5lib/filters/lint.py bleach/_vendor/html5lib/filters/lint.py |
| 52 | +index acd4d7a..1340d97 100644 |
| 53 | +--- bleach/_vendor/html5lib/filters/lint.py |
| 54 | ++++ bleach/_vendor/html5lib/filters/lint.py |
| 55 | +@@ -1,6 +1,6 @@ |
| 56 | + from __future__ import absolute_import, division, unicode_literals |
| 57 | + |
| 58 | +-from six import text_type |
| 59 | ++from bleach.six_shim import text_type |
| 60 | + |
| 61 | + from . import base |
| 62 | + from ..constants import namespaces, voidElements |
| 63 | +diff --git bleach/_vendor/html5lib/filters/sanitizer.py bleach/_vendor/html5lib/filters/sanitizer.py |
| 64 | +index 70ef906..5c31e97 100644 |
| 65 | +--- bleach/_vendor/html5lib/filters/sanitizer.py |
| 66 | ++++ bleach/_vendor/html5lib/filters/sanitizer.py |
| 67 | +@@ -12,7 +12,7 @@ import re |
| 68 | + import warnings |
| 69 | + from xml.sax.saxutils import escape, unescape |
| 70 | + |
| 71 | +-from six.moves import urllib_parse as urlparse |
| 72 | ++from bleach.six_shim import urllib_parse as urlparse |
| 73 | + |
| 74 | + from . import base |
| 75 | + from ..constants import namespaces, prefixes |
| 76 | +diff --git bleach/_vendor/html5lib/html5parser.py bleach/_vendor/html5lib/html5parser.py |
| 77 | +index 74d829d..5427b7d 100644 |
| 78 | +--- bleach/_vendor/html5lib/html5parser.py |
| 79 | ++++ bleach/_vendor/html5lib/html5parser.py |
| 80 | +@@ -1,5 +1,5 @@ |
| 81 | + from __future__ import absolute_import, division, unicode_literals |
| 82 | +-from six import with_metaclass, viewkeys |
| 83 | ++from bleach.six_shim import viewkeys |
| 84 | + |
| 85 | + import types |
| 86 | + |
| 87 | +@@ -423,7 +423,7 @@ def getPhases(debug): |
| 88 | + return type |
| 89 | + |
| 90 | + # pylint:disable=unused-argument |
| 91 | +- class Phase(with_metaclass(getMetaclass(debug, log))): |
| 92 | ++ class Phase(metaclass=getMetaclass(debug, log)): |
| 93 | + """Base class for helper object that implements each phase of processing |
| 94 | + """ |
| 95 | + __slots__ = ("parser", "tree", "__startTagCache", "__endTagCache") |
| 96 | +diff --git bleach/_vendor/html5lib/serializer.py bleach/_vendor/html5lib/serializer.py |
| 97 | +index c66df68..5666f49 100644 |
| 98 | +--- bleach/_vendor/html5lib/serializer.py |
| 99 | ++++ bleach/_vendor/html5lib/serializer.py |
| 100 | +@@ -1,5 +1,5 @@ |
| 101 | + from __future__ import absolute_import, division, unicode_literals |
| 102 | +-from six import text_type |
| 103 | ++from bleach.six_shim import text_type |
| 104 | + |
| 105 | + import re |
| 106 | + |
| 107 | +diff --git bleach/_vendor/html5lib/treebuilders/base.py bleach/_vendor/html5lib/treebuilders/base.py |
| 108 | +index e4a3d71..2869da0 100644 |
| 109 | +--- bleach/_vendor/html5lib/treebuilders/base.py |
| 110 | ++++ bleach/_vendor/html5lib/treebuilders/base.py |
| 111 | +@@ -1,5 +1,5 @@ |
| 112 | + from __future__ import absolute_import, division, unicode_literals |
| 113 | +-from six import text_type |
| 114 | ++from bleach.six_shim import text_type |
| 115 | + |
| 116 | + from ..constants import scopingElements, tableInsertModeElements, namespaces |
| 117 | + |
| 118 | +diff --git bleach/_vendor/html5lib/treebuilders/etree.py bleach/_vendor/html5lib/treebuilders/etree.py |
| 119 | +index 086bed4..5ccfc4d 100644 |
| 120 | +--- bleach/_vendor/html5lib/treebuilders/etree.py |
| 121 | ++++ bleach/_vendor/html5lib/treebuilders/etree.py |
| 122 | +@@ -1,7 +1,7 @@ |
| 123 | + from __future__ import absolute_import, division, unicode_literals |
| 124 | + # pylint:disable=protected-access |
| 125 | + |
| 126 | +-from six import text_type |
| 127 | ++from bleach.six_shim import text_type |
| 128 | + |
| 129 | + import re |
| 130 | + |
| 131 | +diff --git bleach/_vendor/html5lib/treebuilders/etree_lxml.py bleach/_vendor/html5lib/treebuilders/etree_lxml.py |
| 132 | +index e73de61..f462232 100644 |
| 133 | +--- bleach/_vendor/html5lib/treebuilders/etree_lxml.py |
| 134 | ++++ bleach/_vendor/html5lib/treebuilders/etree_lxml.py |
| 135 | +@@ -28,7 +28,7 @@ from . import etree as etree_builders |
| 136 | + from .. import _ihatexml |
| 137 | + |
| 138 | + import lxml.etree as etree |
| 139 | +-from six import PY3, binary_type |
| 140 | ++from bleach.six_shim import PY3, binary_type |
| 141 | + |
| 142 | + |
| 143 | + fullTree = True |
| 144 | +diff --git bleach/_vendor/html5lib/treewalkers/etree.py bleach/_vendor/html5lib/treewalkers/etree.py |
| 145 | +index 4465337..a9d9450 100644 |
| 146 | +--- bleach/_vendor/html5lib/treewalkers/etree.py |
| 147 | ++++ bleach/_vendor/html5lib/treewalkers/etree.py |
| 148 | +@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, unicode_literals |
| 149 | + from collections import OrderedDict |
| 150 | + import re |
| 151 | + |
| 152 | +-from six import string_types |
| 153 | ++from bleach.six_shim import string_types |
| 154 | + |
| 155 | + from . import base |
| 156 | + from .._utils import moduleFactoryFactory |
| 157 | +diff --git bleach/_vendor/html5lib/treewalkers/etree_lxml.py bleach/_vendor/html5lib/treewalkers/etree_lxml.py |
| 158 | +index a614ac5..ef42163 100644 |
| 159 | +--- bleach/_vendor/html5lib/treewalkers/etree_lxml.py |
| 160 | ++++ bleach/_vendor/html5lib/treewalkers/etree_lxml.py |
| 161 | +@@ -1,5 +1,5 @@ |
| 162 | + from __future__ import absolute_import, division, unicode_literals |
| 163 | +-from six import text_type |
| 164 | ++from bleach.six_shim import text_type |
| 165 | + |
| 166 | + from collections import OrderedDict |
| 167 | + |
0 commit comments