OSDN Git Service

perf script python: Add Python3 support to export-to-postgresql.py
authorTony Jones <tonyj@suse.de>
Sat, 9 Mar 2019 00:05:16 +0000 (16:05 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 11 Mar 2019 19:12:57 +0000 (16:12 -0300)
commit1937b0560c3ea43b1b0f7d3617949ca50de8f8c0
tree62fad5e7e0ed89b3de938393e39cc48443e2b5f0
parentbeda0e725e5f06aca27eda2434ea9447dad88e36
perf script python: Add Python3 support to export-to-postgresql.py

Support both Python2 and Python3 in the export-to-postgresql.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>
Link: http://lkml.kernel.org/r/20190309000518.2438-3-tonyj@suse.de
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/export-to-postgresql.py