Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Bug#654680: python-html2text: 3.200.1-1 breaks parsing of feeds within rss2email
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stefano Rivera  
View profile  
 More options Jan 6 2012, 8:10 am
Newsgroups: linux.debian.bugs.rc
From: Stefano Rivera <stefa...@debian.org>
Date: Fri, 06 Jan 2012 14:10:01 +0100
Local: Fri, Jan 6 2012 8:10 am
Subject: Bug#654680: python-html2text: 3.200.1-1 breaks parsing of feeds within rss2email

tag 654680 + patch
thanks

Hi Joerg (2012.01.05_10:39:33_+0200)

> after python-html2text was upgraded to 3.200.1-1 the feeds read by
> rss2email can't be parsed anymore

Looks like the html2text upstream didn't consider unescape() to be part
of the public API, and moved it into a class-level function.
https://github.com/aaronsw/html2text/commit/1a25828d556d30cc689c1bc2c...

I see it's also been marked with a "# @@nobody calls this function?"
comment. Aaron: Are you intending to remove it?

Joerg / Lindsey: The attached patch for rss2email should do the trick
for supporting 3.200.

The alternatives are:
* re-adding a top level unescape() function to
  html2text, but that would have to create an HTML2Text object on each
  invocation...
* Moving unscape() (and the functions it calls) back out of the class,
  but then HTML2Text.unicode_snob won't be very useful.

SR

--
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127

  html2text-3.200.patch
1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.