Skip to content

Python3 - #53

Open
jaromil wants to merge 23 commits into
rubys:masterfrom
dyne:python3
Open

Python3#53
jaromil wants to merge 23 commits into
rubys:masterfrom
dyne:python3

Conversation

@jaromil

@jaromil jaromil commented Apr 24, 2026

Copy link
Copy Markdown

migrate to python3 and modernize all deps

wingo and others added 23 commits May 16, 2012 15:32
This commit cherry-picks the patch on html5lib's issue tracker:

  http://code.google.com/p/html5lib/issues/detail?id=205
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants