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_webui/ui_driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipatests/test_webui') diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index d097a5490..6f2013c4a 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -22,6 +22,7 @@ Base class for UI integration tests. Contains browser driver and common tasks. """ +from __future__ import print_function import nose from datetime import datetime @@ -934,7 +935,7 @@ class UI_driver(object): checkbox = self.find(input_s, By.CSS_SELECTOR, parent, strict=True) checkbox_id = checkbox.get_attribute('id') label_s = s + " tbody td label[for='%s']" % checkbox_id - print label_s + print(label_s) label = self.find(label_s, By.CSS_SELECTOR, parent, strict=True) try: ActionChains(self.driver).move_to_element(label).click().perform() -- cgit