python3 fixes
This commit is contained in:
parent
ac5992f9a1
commit
b40a0c18b1
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue