From d8595b710364616c1e9e84492c41301ef3a37acc Mon Sep 17 00:00:00 2001 From: Yuri Baburov Date: Thu, 10 Oct 2013 13:47:58 +0700 Subject: [PATCH] Quickfix for #41 --- readability/htmls.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readability/htmls.py b/readability/htmls.py index f6efac6..92598d4 100644 --- a/readability/htmls.py +++ b/readability/htmls.py @@ -9,6 +9,7 @@ utf8_parser = lxml.html.HTMLParser(encoding='utf-8') def build_doc(page): if isinstance(page, unicode): + enc = None page_unicode = page else: enc = get_encoding(page) or 'utf-8' diff --git a/setup.py b/setup.py index f11fadd..eebe76d 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ else: setup( name="readability-lxml", - version="0.3.0.1", + version="0.3.0.2", author="Yuri Baburov", author_email="burchik@gmail.com", description="fast python port of arc90's readability tool",