From cdd7543a81abe1d0de69d30b0c772f0f0eee2066 Mon Sep 17 00:00:00 2001 From: Boye Borg Date: Mon, 10 Aug 2015 00:39:59 +0200 Subject: [PATCH] altered print from statement to function, Fixes #1 swapped print statement with the python 3 compatible print function --- markdown_shortcodes/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/markdown_shortcodes/__init__.py b/markdown_shortcodes/__init__.py index 83f370c..978a75d 100644 --- a/markdown_shortcodes/__init__.py +++ b/markdown_shortcodes/__init__.py @@ -50,11 +50,11 @@ def expand_shortcodes(document): # Otherwise, ignore the shortcode string and move on. shortcode_method = shortcodes.get(method_name, None) if shortcode_method: - print " Rendering shortcode `%s` with parameters %r" % (shortcode_name, parameters) + print(" Rendering shortcode `%s` with parameters %r" % (shortcode_name, parameters)) html_string = shortcode_method(*parameters) document = document.replace(sequence, html_string) else: - print " shortcode `%s` not found" % shortcode_name + print(" shortcode `%s` not found" % shortcode_name) return document