aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2019-01-22 20:07:24 +0100
committerFélix Sipma <felix.sipma@no-log.org>2019-01-22 20:07:24 +0100
commitf244c56b26db3e31291c36f76ddf8838e5ca38e7 (patch)
treeb3506483fcd320a339f3e066993cc4cb3ee8e0a6
parent22e578c21c9164716006a8f6b4b6984403b99071 (diff)
update ddt-sdrea.py filter
-rwxr-xr-xdoc/filters/ddt-sdrea.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/filters/ddt-sdrea.py b/doc/filters/ddt-sdrea.py
index 58959c6..542ac3f 100755
--- a/doc/filters/ddt-sdrea.py
+++ b/doc/filters/ddt-sdrea.py
@@ -22,7 +22,7 @@ EXAMPLES
"http://www.loire.gouv.fr/publicite-des-demandes-d-autorisation-d-exploiter-a6497.html"
"""
-from __future__ import print_function
+from __future__ import print_function, unicode_literals
from bs4 import BeautifulSoup
import PyRSS2Gen
import sys
@@ -33,7 +33,7 @@ import datetime
import requests
import subprocess
-__version__ = "0.1"
+__version__ = "0.2"
# Defaults
feed_title = None
@@ -121,7 +121,7 @@ for entry in entries:
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- content = "<pre>" + p.communicate(input=pdf.content)[0] + "</pre>"
+ content = "<pre>" + p.communicate(input=pdf.content)[0].decode("utf-8") + "</pre>"
items.append(
PyRSS2Gen.RSSItem(
title=title,