Make babel_extract_angular work with python 3
Also run pep8 env with python3 as pep8/flake8 python 3 is generally more strict. Change-Id: Id4669ca1f929826f07cfe2928092d0e7255fda6f Closes-Bug: #1762992
This commit is contained in:
parent
f545272f12
commit
386a5b669f
|
@ -15,6 +15,7 @@
|
|||
|
||||
import re
|
||||
|
||||
from oslo_utils import encodeutils
|
||||
from six.moves import html_parser
|
||||
|
||||
|
||||
|
@ -165,7 +166,7 @@ def extract_angular(fileobj, keywords, comment_tags, options):
|
|||
parser = AngularGettextHTMLParser()
|
||||
|
||||
for line in fileobj:
|
||||
parser.feed(line)
|
||||
parser.feed(encodeutils.safe_decode(line))
|
||||
|
||||
for string in parser.strings:
|
||||
yield(string)
|
||||
|
|
Loading…
Reference in New Issue