Enable Python 3.5 testing and fix tests

Fixes to a couple of places to make the python 3.5 tests pass.

Change-Id: I3f4b73b24fbe336ac6c80b7aa224a830ab7e36a6
This commit is contained in:
Richard Jones
2016-09-06 12:15:50 +10:00
parent 63ddedf69d
commit b05658735b
4 changed files with 13 additions and 4 deletions

View File

@@ -52,7 +52,9 @@ class AngularGettextHTMLParser(html_parser.HTMLParser):
def __init__(self):
try:
super(AngularGettextHTMLParser, self).__init__()
super(AngularGettextHTMLParser, self).__init__(
convert_charrefs=False
)
except TypeError:
# handle HTMLParser not being a type on Python 2
html_parser.HTMLParser.__init__(self)