summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-11-19 15:04:40 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-11-19 15:04:40 +0100
commit46fe98005e944437f120ccc88506af5efa2acd63 (patch)
tree9525f2ea1091aebe09f2d930792f250e0b7d5158
parent35861ed5bf39158254d3e86cc1308c4f00d40c7d (diff)
url_titles: Default enc to None (no encoding specified) on non-gzipped content.
-rw-r--r--modules/url_titles.py1
1 files changed, 1 insertions, 0 deletions
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