diff --git a/render_math/math.py b/render_math/math.py index bdc4092..b8d0512 100644 --- a/render_math/math.py +++ b/render_math/math.py @@ -1,3 +1,4 @@ +from __future__ import print_function # -*- coding: utf-8 -*- """ Math Render Plugin For Pelican @@ -338,9 +339,9 @@ def pelican_init(pelicanobj): _TYPOGRIFY = typogrify _WRAP_LATEX = 'mathjax' # default to wrap mathjax content inside of except ImportError: - print "\nTypogrify is not installed, so it is being ignored.\nPlease install it if you want to use it: pip install typogrify\n" + print("\nTypogrify is not installed, so it is being ignored.\nPlease install it if you want to use it: pip install typogrify\n") except TypeError: - print "\nA more recent versio of Typogrify is needed for the render_math module.\nPlease upgrade the typogrify to the latest version (anything above version 2.04 is okay).\nTypogrify will be turned off due to this reason\n" + print("\nA more recent versio of Typogrify is needed for the render_math module.\nPlease upgrade the typogrify to the latest version (anything above version 2.04 is okay).\nTypogrify will be turned off due to this reason\n") except KeyError: pass