[PATCH 1/1] filters: force python 3.x and fix options

Christian Hesse list at eworm.de
Mon Oct 12 17:34:22 CEST 2015

From: Christian Hesse <mail at eworm.de>

The python markdown module is a little bit picky when it come to
options. So force python 3.x and fix the options. Documentation says
about input:

[...] or None (default) which will read from stdin.

Signed-off-by: Christian Hesse <mail at eworm.de>
 filters/html-converters/md2html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 1488f48..8adedbe 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import markdown
 import sys
@@ -282,5 +282,5 @@ print('''
 print("<div class='markdown-body'>")
 # Note: you may want to run this through bleach for sanitization
-markdown.markdownFromFile(input=sys.stdin, output_format="html5")
+markdown.markdownFromFile(input=None, output_format="html5")

More information about the CGit mailing list