From c53e9252dad6fa554323353f1094154ebeef1d75 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Mon, 12 Oct 2009 00:21:25 -0500 Subject: [PATCH] Give credit to Fredrik Lundh for html unescape code. --- CONTRIBUTORS | 2 ++ tweepy/parsers.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a49cbf5..de71b49 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -6,3 +6,5 @@ Mark Lango - Ignore key arguments with value of None Pascal Jurgens - Streaming API fix +Fredrik Lundh + - html unescape (http://effbot.org/zone/re-sub.htm#unescape-html) diff --git a/tweepy/parsers.py b/tweepy/parsers.py index 84fcf53..739d303 100644 --- a/tweepy/parsers.py +++ b/tweepy/parsers.py @@ -43,6 +43,7 @@ def _parse_search_datetime(str): def unescape_html(text): + """Created by Fredrik Lundh (http://effbot.org/zone/re-sub.htm#unescape-html)""" def fixup(m): text = m.group(0) if text[:2] == "&#": -- 2.25.1