From 95a94583d9add619c34b953d9f48787d37a8a319 Mon Sep 17 00:00:00 2001 From: Hans-Thomas Mueller Date: Sat, 20 Nov 2010 13:09:43 +0100 Subject: [PATCH] Fixed YadisHTMLParser to cope with UTF-8 input in Python >= 2.6. --- openid/yadis/parsehtml.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openid/yadis/parsehtml.py b/openid/yadis/parsehtml.py index 875a089c..36107971 100644 --- a/openid/yadis/parsehtml.py +++ b/openid/yadis/parsehtml.py @@ -155,6 +155,10 @@ def feed(self, chars): return HTMLParser.feed(self, chars) + def unescape(self, value): + # HTMLParser in >=Python-2.6 chokes here on UTF-8 input + return value + def findHTMLMeta(stream): """Look for a meta http-equiv tag with the YADIS header name.