python3 fixes

This commit is contained in:
Benjamin Peterson 2010-11-23 20:32:07 -06:00
parent ac5992f9a1
commit b40a0c18b1
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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)