repo.or.cz
/
oi-userland.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update Archive-Tar Perl distribution to 3.02 for Perl 5.36 and 5.38
[oi-userland.git]
/
components
/
developer
/
dtracetoolkit
/
patches
/
python3.patch
blob
8a4056a28b6479d5968e6fa28bdc556d0b0c5e8e
1
--- DTraceToolkit-0.99/Code/Python/func_abc.py.orig
2
+++ DTraceToolkit-0.99/Code/Python/func_abc.py
3
@@ -1,18 +1,18 @@
4
-#!/usr/bin/python
5
+#!/usr/bin/python3.9
6
7
import time
8
9
def func_c():
10
- print "Function C"
11
+ print("Function C")
12
time.sleep(1)
13
14
def func_b():
15
- print "Function B"
16
+ print("Function B")
17
time.sleep(1)
18
func_c()
19
20
def func_a():
21
- print "Function A"
22
+ print("Function A")
23
time.sleep(1)
24
func_b()
25
26
--- DTraceToolkit-0.99/Code/Python/func_slow.py.orig
27
+++ DTraceToolkit-0.99/Code/Python/func_slow.py
28
@@ -1,14 +1,14 @@
29
-#!/usr/bin/python
30
+#!/usr/bin/python3.9
31
32
def func_c():
33
- print "Function C"
34
+ print("Function C")
35
i = 0
36
while (i < 3000000):
37
i = i + 1
38
j = i + 1
39
40
def func_b():
41
- print "Function B"
42
+ print("Function B")
43
i = 0
44
while (i < 2000000):
45
i = i + 1
46
@@ -16,7 +16,7 @@
47
func_c()
48
49
def func_a():
50
- print "Function A"
51
+ print("Function A")
52
i = 0
53
while (i < 1000000):
54
i = i + 1