Browse Source

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
Christian Berendt 4 years ago
parent
commit
d329ded5ac
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      horizon/test/patches.py

+ 2
- 1
horizon/test/patches.py View File

@@ -10,9 +10,10 @@
10 10
 # License for the specific language governing permissions and limitations
11 11
 # under the License.
12 12
 
13
-import HTMLParser as _HTMLParser
14 13
 import re
15 14
 
15
+from six.moves import html_parser as _HTMLParser
16
+
16 17
 
17 18
 def parse_starttag_patched(self, i):
18 19
     """This method is a patched version of the parse_starttag method from

Loading…
Cancel
Save