From 46fe98005e944437f120ccc88506af5efa2acd63 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 19 Nov 2010 15:04:40 +0100 Subject: url_titles: Default enc to None (no encoding specified) on non-gzipped content. --- modules/url_titles.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/url_titles.py b/modules/url_titles.py index b7d5e25..eca708f 100644 --- a/modules/url_titles.py +++ b/modules/url_titles.py @@ -74,6 +74,7 @@ class Module: else: s = '' m = None + enc = None buf = u.read(1024) while buf and time.time() - t < 5.0: s += buf -- cgit v1.2.3