From 8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 12 Aug 2015 13:44:11 +0200 Subject: 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 Reviewed-By: Jan Cholasta --- ipatests/test_ipalib/test_text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipatests/test_ipalib/test_text.py') diff --git a/ipatests/test_ipalib/test_text.py b/ipatests/test_ipalib/test_text.py index c1140d217..c6ab38887 100644 --- a/ipatests/test_ipalib/test_text.py +++ b/ipatests/test_ipalib/test_text.py @@ -20,6 +20,7 @@ """ Test the `ipalib.text` module. """ +from __future__ import print_function import os import shutil @@ -93,7 +94,7 @@ class test_TestLang(object): shutil.rmtree(self.tmp_dir) def test_test_lang(self): - print "test_test_lang" + print("test_test_lang") # The test installs the test message catalog under the xh_ZA # (e.g. Zambia Xhosa) language by default. It would be nice to # use a dummy language not associated with any real language, -- cgit