Comment 4 for bug 716446

Revision history for this message
Роман Донченко (dpb-r) wrote :

The recent versions of feedparser include this functionality out of the box, so the custom branch is no longer needed. The interface is slightly different:

=== modified file 'build.py'
--- build.py 2012-03-21 10:29:44 +0000
+++ build.py 2012-05-13 23:53:34 +0000
@@ -57,10 +57,7 @@

 def build_feed(title, rss_url, count):
     print "fetching data from %s" % (rss_url,)
- # we use our own copy of feedparser with a patch to let
- # <http://code.google.com/p/feedparser/issues/detail?id=224> extra_headers
- # be passed
- d = feedparser.parse(rss_url, extra_headers={'Cache-control': 'max-age=60'})
+ d = feedparser.parse(rss_url, request_headers={'Cache-control': 'max-age=60'})
     entries = []
     for entry in d.entries[0:count]:
         entries.append(dict(