From 40bbfa3bc5332507230f66bb9335e768214913ab Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 21 Feb 2009 22:31:56 +0000 Subject: [PATCH] Disable BeautifulSoup support. It's just too broken. --- NEWS | 8 +++++--- rawdoglib/rawdog.py | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 85a154d..855ae85 100644 --- a/NEWS +++ b/NEWS @@ -1,9 +1,11 @@ - rawdog 2.13 +Forcibly disable BeautifulSoup support in feedparser, since it returns +unpickleable pseudo-string objects, and it crashes when trying to parse +twenty or so of my feeds (reported by Joseph Reagle). + Make the code that cleans up feedparser's return value more thorough -- -in particular, turn subclasses of "unicode" into real unicode objects, -which makes rawdog work with broken versions of BeautifulSoup where -their unicode subclass isn't pickleable (reported by Joseph Reagle). +in particular, turn subclasses of "unicode" into real unicode objects. - rawdog 2.12 diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 988aacd..eef5707 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -1127,6 +1127,7 @@ class Rawdog(Persistable): feedparser._FeedParserMixin.can_contain_relative_uris = ["url"] feedparser._FeedParserMixin.can_contain_dangerous_markup = [] + feedparser.BeautifulSoup = None set_socket_timeout(config["timeout"]) if feedurl is None: -- 2.35.1