--- DTraceToolkit-0.99/Code/Python/func_abc.py.orig +++ DTraceToolkit-0.99/Code/Python/func_abc.py @@ -1,18 +1,18 @@ -#!/usr/bin/python +#!/usr/bin/python3.9 import time def func_c(): - print "Function C" + print("Function C") time.sleep(1) def func_b(): - print "Function B" + print("Function B") time.sleep(1) func_c() def func_a(): - print "Function A" + print("Function A") time.sleep(1) func_b() --- DTraceToolkit-0.99/Code/Python/func_slow.py.orig +++ DTraceToolkit-0.99/Code/Python/func_slow.py @@ -1,14 +1,14 @@ -#!/usr/bin/python +#!/usr/bin/python3.9 def func_c(): - print "Function C" + print("Function C") i = 0 while (i < 3000000): i = i + 1 j = i + 1 def func_b(): - print "Function B" + print("Function B") i = 0 while (i < 2000000): i = i + 1 @@ -16,7 +16,7 @@ func_c() def func_a(): - print "Function A" + print("Function A") i = 0 while (i < 1000000): i = i + 1