Commit 284bdbe7 authored by Rémi Cardona's avatar Rémi Cardona
Browse files

[py3k] print function

Related to #268148.
parent 13a0e8191dc0
......@@ -25,6 +25,8 @@
`Lesser General Public License version 2`
"""
from __future__ import print_function
__docformat__ = "restructuredtext en"
from logilab.mtconverter.__pkginfo__ import version as __version__
......@@ -228,7 +230,7 @@ def register_pil_transforms(engine, verb=True):
except ImportError:
# pil not available, do nothing
if verb:
print "PIL isn't available, image transforms won't be available'"
print("PIL isn't available, image transforms won't be available'")
return False
else:
for trclass in piltransforms.transform_classes:
......@@ -242,7 +244,7 @@ def register_pygments_transforms(engine, verb=True):
except ImportError:
# pygments not available, do nothing
if verb:
print "PYGMENTS isn't available, transforms won't be available'"
print("PYGMENTS isn't available, transforms won't be available'")
return False
else:
for trclass in pygmentstransforms.transform_classes:
......@@ -270,5 +272,5 @@ def register_base_transforms(engine, verb=True):
engine.add_transform(trclass())
except MissingBinary as ex:
if verb:
print ex
print(ex)
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment