zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 748d7c673ea8efc9164e2386f32f93847b617d8b
parent f98e35d1336421d251ad29089a23f77125aabc53
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 27 Mar 2014 17:34:32 +0100

BeautifulSoup does not seem to work in Python3.

Diffstat:
feedemail.py | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/feedemail.py b/feedemail.py @@ -11,7 +11,6 @@ from email.mime.multipart import MIMEMultipart from email.utils import formataddr, formatdate, parseaddr from email.header import Header import time -import lxml.html.soupparser import html2text as h2t h2t.UNICODE_SNOB = 1 @@ -21,9 +20,6 @@ h2t.INLINE_LINKS = 0 html2text = h2t.html2text def normalizeheader(hstr): - hstr = lxml.html.soupparser.tostring(hstr.replace("\n", " ").strip(),\ - encoding="utf-8") - return hstr.replace("\n", " ").strip() def send(feed, to, smtphost="localhost", smtpport=None, ssl="False", \