Minor fixes after the Python 3 merge.

This commit is contained in:
Jannis Leidel
2013-05-27 11:13:16 +02:00
parent 4f2369832e
commit 963a210063
3 changed files with 1 additions and 3 deletions

View File

@@ -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:

View File

@@ -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'

View File

@@ -19,7 +19,6 @@ three =
lxml
BeautifulSoup4
[tox]
envlist =
py33-1.5.X,