1. Pypy
  2. Untitled project
  3. compatibility

Wiki

Clone wiki

compatibility / feedparser

Universal Feed Parser (feedparser)

Feedparser is compatible with PyPy: most of its test suite pass under PyPy, except for a few tests of unsupported codecs.

A small patch has to be applied to the test runner's getDescription function for it to succeed (otherwise it errors due to not closing files):

--- feedparsertest.py   2011-01-10 02:25:07.000000000 -0200
+++ feedparsertest2.py  2011-02-06 23:51:47.000000000 -0200
@@ -183,7 +183,9 @@
   -->
   """

-  data = open(xmlfile, 'rb').read()
+  d = open(xmlfile, 'rb')
+  data = d.read()
+  d.close()
   if data[:4] == _l2bytes([0x4c, 0x6f, 0xa7, 0x94]):
     data = feedparser._ebcdic_to_ascii(data)
   elif data[:4] == _l2bytes([0x00, 0x00, 0xfe, 0xff]):

URL:http://feedparser.org/
Category:Parsers and parser generators
Compatible:Compatible

Updated