From d329ded5acdee67c5d8984a21502d660191345e9 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 10 Jun 2014 16:29:16 +0200 Subject: [PATCH] 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 --- horizon/test/patches.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/horizon/test/patches.py b/horizon/test/patches.py index e827aea873..612c967cff 100644 --- a/horizon/test/patches.py +++ b/horizon/test/patches.py @@ -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