aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2020-01-23 12:36:15 +0100
committerFélix Sipma <felix.sipma@no-log.org>2020-01-23 12:36:15 +0100
commit96e6db2c3d5ab34118d0f8dd7426f0ccede10407 (patch)
tree6d81c0307f507243aa42cbc317d6433d5f24f282
parent840162a7e6c5107c1e52c60aac487e3c5f83ae47 (diff)
convert python filters to python3
-rwxr-xr-xdoc/filters/confederationpaysanne.py4
-rwxr-xr-xdoc/filters/donnons.py2
-rwxr-xr-xdoc/filters/leboncoin.py2
-rwxr-xr-xdoc/filters/recupe.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/doc/filters/confederationpaysanne.py b/doc/filters/confederationpaysanne.py
index 6db001e..2025957 100755
--- a/doc/filters/confederationpaysanne.py
+++ b/doc/filters/confederationpaysanne.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
"""
@@ -65,7 +65,7 @@ for opt in optlist:
print(__doc__)
sys.exit(0)
-html = sys.stdin.read()
+html = sys.stdin.buffer.read()
# Find entries
soup = BeautifulSoup(html, "lxml")
diff --git a/doc/filters/donnons.py b/doc/filters/donnons.py
index cb67b5e..a29eed9 100755
--- a/doc/filters/donnons.py
+++ b/doc/filters/donnons.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
"""
diff --git a/doc/filters/leboncoin.py b/doc/filters/leboncoin.py
index 7b440ce..d2d3d1a 100755
--- a/doc/filters/leboncoin.py
+++ b/doc/filters/leboncoin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
"""
diff --git a/doc/filters/recupe.py b/doc/filters/recupe.py
index a621f70..403b5c1 100755
--- a/doc/filters/recupe.py
+++ b/doc/filters/recupe.py
@@ -63,7 +63,7 @@ for opt in optlist:
print(__doc__)
sys.exit(0)
-html = sys.stdin.read()
+html = sys.stdin.buffer.read()
# Find entries
soup = BeautifulSoup(html, "lxml")