Python3 - #53
Open
jaromil wants to merge 23 commits into
Open
Conversation
This commit cherry-picks the patch on html5lib's issue tracker: http://code.google.com/p/html5lib/issues/detail?id=205
This commit cherry-picks the patch on html5lib's issue tracker: http://code.google.com/p/html5lib/issues/detail?id=206
* planet/vendor/feedparser.py: Add preload and parser to the set of acceptable attributes. This is http://code.google.com/p/feedparser/issues/detail?id=356.
…ough because they have no meaning to a browser or SGML parser and may contain meta-data or other attributes that scripts added to the planet page may require.
The RSS spec specifies a <source> member of <item> for aggregators to indicate another feed from which the item originated.
Empty point defined as <georss:point> </georss:point> with single space only leads to index out of range on the coordinates access.
There is something about the default httplib2 user-agent that causes some web
servers to throw up.
Try this, for example::
>>> import httplib2
>>> h = httplib2.Http()
>>> response, content = h.request(
... "http://ankursinha.in/blog/feed/")
>>> response.status
406
>>> response, content = h.request(
... "http://ankursinha.in/blog/feed/",
... headers={'user-agent': 'trololololololol 9000'})
>>> response.status
200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
migrate to python3 and modernize all deps