This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 517bf28489ebbf44dc39acbac972b30bb02043ba Author: Madhan Neethiraj <[email protected]> AuthorDate: Fri Jan 15 16:52:59 2021 -0800 ATLAS-4077: replaced print statements in Python files with call to print(), for Python3 --- distro/src/test/python/scripts/TestMetadata.py | 4 ++-- tools/atlas-index-repair/src/main/resources/repair_index.py | 8 ++++---- tools/atlas-migration-exporter/atlas_migration_export.py | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/distro/src/test/python/scripts/TestMetadata.py b/distro/src/test/python/scripts/TestMetadata.py index 251de93..662fbdd 100644 --- a/distro/src/test/python/scripts/TestMetadata.py +++ b/distro/src/test/python/scripts/TestMetadata.py @@ -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") diff --git a/tools/atlas-index-repair/src/main/resources/repair_index.py b/tools/atlas-index-repair/src/main/resources/repair_index.py index bbdc854..0333dad 100755 --- a/tools/atlas-index-repair/src/main/resources/repair_index.py +++ b/tools/atlas-index-repair/src/main/resources/repair_index.py @@ -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) diff --git a/tools/atlas-migration-exporter/atlas_migration_export.py b/tools/atlas-migration-exporter/atlas_migration_export.py index 591043f..e1b12f6 100755 --- a/tools/atlas-migration-exporter/atlas_migration_export.py +++ b/tools/atlas-migration-exporter/atlas_migration_export.py @@ -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)
