From c1dc73d0a13324f8ae5bd8aefd70cee1ef928665 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 Jan 2011 12:56:55 +0000 Subject: [PATCH] minor, just in case update related to the previous commit --- lib/request/basic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/request/basic.py b/lib/request/basic.py index 810c946f2..000e36fdf 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -134,7 +134,8 @@ def decodePage(page, contentEncoding, contentType): if charset: kb.pageEncoding = charset page = getUnicode(page) - else: + + if isinstance(page, str): page = getUnicode(page) return page