Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:sp5-rebuild
perf.17853
perf-script-python-add-python3-support-to-expor...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perf-script-python-add-python3-support-to-exported-sql-viewer-py.patch of Package perf.17853
From: Tony Jones <tonyj@suse.de> Date: Fri, 8 Mar 2019 16:05:15 -0800 Subject: perf script python: Add Python3 support to exported-sql-viewer.py Git-commit: beda0e725e5f06aca27eda2434ea9447dad88e36 Patch-mainline: v5.1-rc1 References: bsc#1082197 X-Info: rebase to v4.12 version, no 031c2a004ba7..cd358012ba20 (26 commits); 69e6e410f1a1..341e73cbd301 (13 commits); Support both Python2 and Python3 in the exported-sql-viewer.py script. The use of 'from __future__' implies the minimum supported Python2 version is now v2.6 Signed-off-by: Tony Jones <tonyj@suse.de> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Link: http://lkml.kernel.org/r/20190309000518.2438-2-tonyj@suse.de Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> --- tools/perf/scripts/python/call-graph-from-postgresql.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/scripts/python/call-graph-from-postgresql.py b/tools/perf/scripts/python/call-graph-from-postgresql.py index afec9479ca7f..e38518cdcbc3 100755 --- a/tools/perf/scripts/python/call-graph-from-postgresql.py +++ b/tools/perf/scripts/python/call-graph-from-postgresql.py @@ -52,6 +52,8 @@ # 'Branch Count' is the total number of branches for that function and all # functions that it calls +from __future__ import print_function + import sys from PySide.QtCore import * from PySide.QtGui import * @@ -290,7 +292,8 @@ if __name__ == '__main__': if (len(sys.argv) < 2): - print >> sys.stderr, "Usage is: call-graph-from-postgresql.py <database name>" + print("Usage is: call-graph-from-postgresql.py <database name>", + file=sys.stderr); raise Exception("Too few arguments") dbname = sys.argv[1]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor