Cleanups [ci skip]

pull/21/head
Mišo Belica 11 years ago
parent 09b4040578
commit 5f1b39fe0b

@ -56,7 +56,6 @@ def to_bytes(object):
return to_bytes(repr(object))
def to_unicode(object):
try:
if isinstance(object, unicode):

@ -8,7 +8,7 @@ import re
import logging
import charade
from lxml.etree import tostring, tounicode, XMLSyntaxError
from lxml.etree import tounicode, XMLSyntaxError
from lxml.html import document_fromstring, HTMLParser
from ._compat import unicode, to_bytes, to_unicode, unicode_compatible

@ -2,7 +2,6 @@
from __future__ import absolute_import
import re
import logging
from copy import deepcopy

@ -65,7 +65,6 @@ class TestReadableDocument(unittest.TestCase):
self.assertEqual(doc.readable_dom.tag, 'div')
self.assertEqual(doc.readable_dom.get('id'), 'readabilityBody')
def test_no_content(self):
"""Without content we supply an empty unparsed doc."""
doc = Article('')

Loading…
Cancel
Save