Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
f5a4b6f35c99
Commit
284bdbe7
authored
Aug 01, 2014
by
Rémi Cardona
Browse files
[py3k] print function
Related to #268148.
parent
13a0e8191dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
f5a4b6f3
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment