diff --git a/gluon/contrib/markmin/markmin2html.py b/gluon/contrib/markmin/markmin2html.py index 0a520b18..211a9e39 100755 --- a/gluon/contrib/markmin/markmin2html.py +++ b/gluon/contrib/markmin/markmin2html.py @@ -7,10 +7,11 @@ import re import urllib from cgi import escape from string import maketrans + try: - from ast import parse as ast_parse - import ast -except ImportError: # python 2.5 + from ast import parse as ast_parse + import ast +except ImportError: # python 2.5 from compiler import parse import compiler.ast as ast @@ -530,41 +531,47 @@ As shown in Ref.!`!`mdipierro`!`!:cite ``