diff --git a/bench/bench.py b/bench/bench.py index 0a356a990..c9644ef61 100644 --- a/bench/bench.py +++ b/bench/bench.py @@ -7,4 +7,4 @@ if __name__ == '__main__': p = pstats.Stats("prof") p.strip_dirs() p.sort_stats('cumulative') - print p.print_stats(30) + print(p.print_stats(30)) diff --git a/bench/empty.py b/bench/empty.py index c9e2e6b5f..ac5e25701 100644 --- a/bench/empty.py +++ b/bench/empty.py @@ -1,3 +1,3 @@ - +import py for i in range(1000): - exec "def test_func_%d(): pass" % i + py.builtin.exec_("def test_func_%d(): pass" % i)