diff --git a/Ada/compile_all.py b/Ada/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Ada/compile_all.py +++ b/Ada/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/C++/compile_all.py b/C++/compile_all.py index 3b304076..68e4c42d 100644 --- a/C++/compile_all.py +++ b/C++/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/C/compile_all.py b/C/compile_all.py index 3b304076..68e4c42d 100644 --- a/C/compile_all.py +++ b/C/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/CSharp/compile_all.py b/CSharp/compile_all.py index 3b304076..68e4c42d 100644 --- a/CSharp/compile_all.py +++ b/CSharp/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Chapel/compile_all.py b/Chapel/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Chapel/compile_all.py +++ b/Chapel/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Dart/compile_all.py b/Dart/compile_all.py index 3b304076..68e4c42d 100644 --- a/Dart/compile_all.py +++ b/Dart/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Erlang/compile_all.py b/Erlang/compile_all.py index 3b304076..68e4c42d 100644 --- a/Erlang/compile_all.py +++ b/Erlang/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Fortran/compile_all.py b/Fortran/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Fortran/compile_all.py +++ b/Fortran/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Go/compile_all.py b/Go/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Go/compile_all.py +++ b/Go/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Hack/compile_all.py b/Hack/compile_all.py index 3b304076..68e4c42d 100644 --- a/Hack/compile_all.py +++ b/Hack/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Haskell/compile_all.py b/Haskell/compile_all.py index 3b304076..68e4c42d 100644 --- a/Haskell/compile_all.py +++ b/Haskell/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/JRuby/compile_all.py b/JRuby/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/JRuby/compile_all.py +++ b/JRuby/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/JavaScript/compile_all.py b/JavaScript/compile_all.py index 3b304076..68e4c42d 100644 --- a/JavaScript/compile_all.py +++ b/JavaScript/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Julia/compile_all.py b/Julia/compile_all.py index 3b304076..68e4c42d 100644 --- a/Julia/compile_all.py +++ b/Julia/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Lisp/compile_all.py b/Lisp/compile_all.py index 3b304076..68e4c42d 100644 --- a/Lisp/compile_all.py +++ b/Lisp/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Lua/compile_all.py b/Lua/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Lua/compile_all.py +++ b/Lua/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/OCaml/compile_all.py b/OCaml/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/OCaml/compile_all.py +++ b/OCaml/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/PHP/compile_all.py b/PHP/compile_all.py index 3b304076..68e4c42d 100644 --- a/PHP/compile_all.py +++ b/PHP/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Pascal/compile_all.py b/Pascal/compile_all.py index 3b304076..68e4c42d 100644 --- a/Pascal/compile_all.py +++ b/Pascal/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Perl/compile_all.py b/Perl/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Perl/compile_all.py +++ b/Perl/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Python/compile_all.py b/Python/compile_all.py index 3b304076..68e4c42d 100644 --- a/Python/compile_all.py +++ b/Python/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Racket/compile_all.py b/Racket/compile_all.py index 21dbcc2f..46e95bcd 100644 --- a/Racket/compile_all.py +++ b/Racket/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking ' + root + print('Checking ' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Ruby/compile_all.py b/Ruby/compile_all.py index 3b304076..68e4c42d 100644 --- a/Ruby/compile_all.py +++ b/Ruby/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Rust/compile_all.py b/Rust/compile_all.py index 3b304076..68e4c42d 100644 --- a/Rust/compile_all.py +++ b/Rust/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Smalltalk/compile_all.py b/Smalltalk/compile_all.py index 3b304076..68e4c42d 100644 --- a/Smalltalk/compile_all.py +++ b/Smalltalk/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/Swift/compile_all.py b/Swift/compile_all.py index 3b304076..68e4c42d 100644 --- a/Swift/compile_all.py +++ b/Swift/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main() diff --git a/TypeScript/compile_all.py b/TypeScript/compile_all.py index 3b304076..68e4c42d 100644 --- a/TypeScript/compile_all.py +++ b/TypeScript/compile_all.py @@ -12,7 +12,7 @@ def file_exists(file_path): def main(): for root, dirs, files in os.walk(path): - print 'Checking' + root + print('Checking' + root) makefile = os.path.join(root, "Makefile") if file_exists(makefile): cmd = 'cd ' + root + '; make ' + action @@ -24,15 +24,15 @@ def main(): if pipes.returncode != 0: # an error happened! err_msg = "%s. Code: %s" % (std_err.strip(), pipes.returncode) - print '[E] Error on ' + root + ': ' - print err_msg + print('[E] Error on ' + root + ': ') + print(err_msg) elif len(std_err): # return code is 0 (no error), but we may want to # do something with the info on std_err # i.e. logger.warning(std_err) - print '[OK]' + print('[OK]') else: - print '[OK]' + print('[OK]') if action == 'measure': call(['sleep', '5']) @@ -40,13 +40,13 @@ def main(): if len(sys.argv) == 2: act = sys.argv[1] if (act == 'compile') | (act == 'run') | (act == 'clean') | (act == 'measure'): - print 'Performing \"' + act + '\" action...' + print('Performing \"' + act + '\" action...') action = act else: - print 'Error: Unrecognized action \"' + act + '\"' + print('Error: Unrecognized action \"' + act + '\"') sys.exit(1) else: - print 'Performing \"compile\" action...' + print('Performing \"compile\" action...') action = 'compile' main()