Use import from six.moves to import the HTMLParser module
The name of the HTMLParser module is html.parser instead of HTMLParser in Python3. Change-Id: Iaedf03e2e6fc03f1d86818fdae9ec7a95e5f7512
This commit is contained in:
parent
17123afde0
commit
d329ded5ac
|
@ -10,9 +10,10 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import HTMLParser as _HTMLParser
|
||||
import re
|
||||
|
||||
from six.moves import html_parser as _HTMLParser
|
||||
|
||||
|
||||
def parse_starttag_patched(self, i):
|
||||
"""This method is a patched version of the parse_starttag method from
|
||||
|
|
Loading…
Reference in New Issue