File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
# This software may be distributed under the terms of the GNU General
6
6
# Public License ("GPL") version 2 as published by the Free Software
7
7
# Foundation.
8
+ from __future__ import print_function
8
9
9
10
import errno , os
10
11
@@ -33,7 +34,7 @@ def nsecs_str(nsecs):
33
34
return str
34
35
35
36
def add_stats (dict , key , value ):
36
- if not dict . has_key ( key ) :
37
+ if key not in dict :
37
38
dict [key ] = (value , value , value , 1 )
38
39
else :
39
40
min , max , avg , count = dict [key ]
@@ -72,10 +73,10 @@ def clear_term():
72
73
except :
73
74
if not audit_package_warned :
74
75
audit_package_warned = True
75
- print "Install the audit-libs-python package to get syscall names.\n " \
76
- "For example:\n # apt-get install python-audit (Ubuntu)" \
77
- "\n # yum install audit-libs-python (Fedora)" \
78
- "\n etc.\n "
76
+ print ( "Install the audit-libs-python package to get syscall names.\n "
77
+ "For example:\n # apt-get install python-audit (Ubuntu)"
78
+ "\n # yum install audit-libs-python (Fedora)"
79
+ "\n etc.\n " )
79
80
80
81
def syscall_name (id ):
81
82
try :
You can’t perform that action at this time.
0 commit comments