summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/internal.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-08-12 13:44:11 +0200
committerJan Cholasta <jcholast@redhat.com>2015-09-01 11:42:01 +0200
commit8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e (patch)
treeac6435b79d3e540e907bcc88e3b1c534c2945626 /ipalib/plugins/internal.py
parentfb7943dab454f358316160b4baf99075603a162d (diff)
downloadfreeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.tar.gz
freeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.tar.xz
freeipa-8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e.zip
Use the print function
In Python 3, `print` is no longer a statement. Call it as a function everywhere, and include the future import to remove the statement in Python 2 code as well. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/plugins/internal.py')
-rw-r--r--ipalib/plugins/internal.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/internal.py b/ipalib/plugins/internal.py
index e1904d2d3..7acd46bcd 100644
--- a/ipalib/plugins/internal.py
+++ b/ipalib/plugins/internal.py
@@ -22,6 +22,7 @@
"""
Plugins not accessible directly through the CLI, commands used internally
"""
+from __future__ import print_function
import json
@@ -138,7 +139,7 @@ class json_metadata(Command):
return retval
def output_for_cli(self, textui, result, *args, **options):
- print json.dumps(result, default=json_serialize)
+ print(json.dumps(result, default=json_serialize))
@register()
@@ -856,6 +857,6 @@ class i18n_messages(Command):
return dict(texts=json_serialize(self.messages))
def output_for_cli(self, textui, result, *args, **options):
- print json.dumps(result, default=json_serialize)
+ print(json.dumps(result, default=json_serialize))