Carlos wrote: > Your patch seems to be less intrusive but I would tend to include the > upsteam's accepted one.
Looking at upstream's patch, it seems that mine had two bugs - upstream's patch seems to be okay though. > upstream doesn't plan to release in a near future. That's a shame. Would you consider applying the patch to the Debian version in time for Lenny? (If it helps, I've attached it in "unified" diff format.) Regards, -- Chris Lamb, UK [EMAIL PROTECTED] GPG: 0x634F9A20
--- a/feedparser.py 2006-01-11 04:32:22.000000000 +0000 +++ b/feedparser.py 2008-07-15 22:35:32.000000000 +0100 @@ -1186,8 +1186,12 @@ def _start_title(self, attrsD): self.pushContent('title', attrsD, 'text/plain', self.infeed or self.inentry or self.insource) - _start_dc_title = _start_title - _start_media_title = _start_title + + def _start_title_low_pri(self, attrsD): + if not self._getContext().has_key('title'): + self._start_title(attrsD) + _start_dc_title = _start_title_low_pri + _start_media_title = _start_title_low_pri def _end_title(self): value = self.popContent('title') @@ -1196,8 +1200,12 @@ context['textinput']['title'] = value elif self.inimage: context['image']['title'] = value - _end_dc_title = _end_title - _end_media_title = _end_title + + def _end_title_low_pri(self): + if not self._getContext().has_key('title'): + self._end_title() + _end_dc_title = _end_title_low_pri + _end_media_title = _end_title_low_pri def _start_description(self, attrsD): context = self._getContext()
signature.asc
Description: PGP signature