Minor fixes after the Python 3 merge.
This commit is contained in:
@@ -50,7 +50,7 @@ class Html5LibParser(ParserBase):
|
||||
return elem.attrib
|
||||
|
||||
def elem_content(self, elem):
|
||||
return smart_unicode(elem.text)
|
||||
return smart_text(elem.text)
|
||||
|
||||
def elem_name(self, elem):
|
||||
if '}' in elem.tag:
|
||||
|
@@ -126,7 +126,6 @@ class Html5LibParserTests(ParserTestCase, CompressorTestCase):
|
||||
settings.COMPRESS_PRECOMPILERS = precompilers
|
||||
|
||||
|
||||
|
||||
@ut2.skipIf(BeautifulSoup is None, 'BeautifulSoup not found')
|
||||
class BeautifulSoupParserTests(ParserTestCase, CompressorTestCase):
|
||||
parser_cls = 'compressor.parser.BeautifulSoupParser'
|
||||
|
Reference in New Issue
Block a user