HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

add an option to disable microformat parsing #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is more of a feature request, but implementing it is super simple. I'm 
attaching a patch. 

I've noticed that most of the issues I encounter that causes parsing failures 
happen in the code that tries to parse microformats. In my app, I don't need to 
parse microformats anyway. Skiping that part reduces the errors and also 
improves performance. 

With this path, I added a global variable, PARSE_MICROFORMATS, that is set to 1 
by default. Setting it to 0 causes the parser to skip parsing microformats. 

Original issue reported on code.google.com by wal...@ninua.com on 21 Jun 2011 at 1:31

Attachments:

GoogleCodeExporter commented 9 years ago
Patch committed in r562; I'll update the documentation and add a test case a 
little later on. Thanks for the patch!

Original comment by kurtmckee on 28 Aug 2011 at 2:52