ATLAS-4077: replaced print statements in Python files with call to print(), for Python3
This commit is contained in:
parent
6edd4bc110
commit
517bf28489
|
|
@ -43,12 +43,12 @@ class TestMetadata(unittest.TestCase):
|
|||
|
||||
# The getConfig mock has to be configured here to return the expected mock values
|
||||
def get_config_mock_side_effect(*args, **kwargs):
|
||||
print "get_config_mock_side_effect (" + args[2] + ")"
|
||||
print("get_config_mock_side_effect (" + args[2] + ")")
|
||||
return TestMetadata.mock_values.get(args[2])
|
||||
|
||||
# The getConfig mock has to be configured here to return the expected mock values
|
||||
def get_default_config_mock_side_effect(*args, **kwargs):
|
||||
print "get_default_config_mock_side_effect (" + args[3] + ")"
|
||||
print("get_default_config_mock_side_effect (" + args[3] + ")")
|
||||
return TestMetadata.mock_values.get(args[3])
|
||||
|
||||
@patch.object(mc, "runProcess")
|
||||
|
|
|
|||
|
|
@ -106,10 +106,10 @@ def main():
|
|||
|
||||
|
||||
if is_hbase and mc.is_hbase_local(confdir):
|
||||
print "configured for local hbase."
|
||||
print("configured for local hbase.")
|
||||
mc.configure_hbase(atlas_home)
|
||||
mc.run_hbase_action(mc.hbaseBinDir(atlas_home), "start", hbase_conf_dir, logdir)
|
||||
print "hbase started."
|
||||
print("hbase started.")
|
||||
|
||||
web_app_path = os.path.join(web_app_dir, "atlas")
|
||||
if (mc.isCygwin()):
|
||||
|
|
@ -146,8 +146,8 @@ if __name__ == '__main__':
|
|||
try:
|
||||
returncode = main()
|
||||
except Exception as e:
|
||||
print "Exception: %s " % str(e)
|
||||
print traceback.format_exc()
|
||||
print("Exception: %s " % str(e))
|
||||
print(traceback.format_exc())
|
||||
returncode = -1
|
||||
|
||||
sys.exit(returncode)
|
||||
|
|
|
|||
|
|
@ -107,10 +107,10 @@ def main():
|
|||
mc.server_pid_not_running(pid)
|
||||
|
||||
if is_hbase and mc.is_hbase_local(confdir):
|
||||
print "configured for local hbase."
|
||||
print("configured for local hbase.")
|
||||
mc.configure_hbase(atlas_home)
|
||||
mc.run_hbase_action(mc.hbaseBinDir(atlas_home), "start", hbase_conf_dir, logdir)
|
||||
print "hbase started."
|
||||
print("hbase started.")
|
||||
|
||||
web_app_path = os.path.join(web_app_dir, "atlas")
|
||||
if (mc.isCygwin()):
|
||||
|
|
@ -147,8 +147,8 @@ if __name__ == '__main__':
|
|||
try:
|
||||
returncode = main()
|
||||
except Exception as e:
|
||||
print "Exception: %s " % str(e)
|
||||
print traceback.format_exc()
|
||||
print("Exception: %s " % str(e))
|
||||
print(traceback.format_exc())
|
||||
returncode = -1
|
||||
|
||||
sys.exit(returncode)
|
||||
|
|
|
|||
Loading…
Reference in New Issue