should use a standard python-feedparser or embed the patched one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr-website |
Fix Released
|
High
|
Richard Wilbur |
Bug Description
I can't run 'python build.py' locally, it fails with:
fetching data from http://
Traceback (most recent call last):
File "build.py", line 121, in <module>
main()
File "build.py", line 107, in main
build_
File "build.py", line 63, in build_feed
d = feedparser.
TypeError: parse() got an unexpected keyword argument 'extra_headers'
The backtrace points to build_feed and there we have:
# we use our own copy of feedparser with a patch to let
# <http://
# be passed
d = feedparser.
Nice !
But... can I have this feedparser too ?
I'm on maverick (python-feedparser 4.1-14) and I wonder what is used in production...
Related branches
- Richard Wilbur: Approve
- Vincent Ladeuil: Pending requested
-
Diff: 29 lines (+12/-2)1 file modifiedbuild.py (+12/-2)
Changed in bzr-website: | |
status: | New → Triaged |
assignee: | nobody → Richard Wilbur (richard-wilbur) |
status: | Triaged → In Progress |
Changed in bzr-website: | |
status: | In Progress → Fix Released |
I worked around the problem with:
=== modified file 'build.py' code.google. com/p/feedparse r/issues/ detail? id=224> extra_headers parse(rss_ url, extra_headers= {'Cache- control' : 'max-age=60'}) parse(rss_ url)
entries. append( dict(
--- build.py 2011-02-08 12:20:55 +0000
+++ build.py 2011-02-10 14:23:45 +0000
@@ -60,7 +60,7 @@
# we use our own copy of feedparser with a patch to let
# <http://
# be passed
- d = feedparser.
+ d = feedparser.
entries = []
for entry in d.entries[0:count]: